test: add more GHA workflows #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jetstream | |
on: | |
pull_request: | |
# branches: | |
# - main | |
paths: | |
- 'transport/jetstream/**' | |
jobs: | |
quality-check: | |
name: Quality Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.6' | |
- name: Lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.56.2 | |
args: --out-format checkstyle:lint-report.xml,github-actions --timeout 2m --tests=false | |
working-directory: './transport/jetstream' | |
- name: Test | |
run: go test --tags=unit -v -timeout 30s -count=1 ./... -coverprofile=test-report.out | |
working-directory: './transport/jetstream' |