Skip to content

general: bump internal dependencies (#54) #55

general: bump internal dependencies (#54)

general: bump internal dependencies (#54) #55

Workflow file for this run

name: natssysclient
on:
push:
paths:
- 'natssysclient/**'
pull_request:
paths:
- 'natssysclient/**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install deps
working-directory: natssysclient
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go get -t work
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/client9/misspell/cmd/misspell@latest
- name: Run linters
working-directory: natssysclient
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
$(exit $(go fmt work | wc -l))
go vet work
staticcheck work
find . -type f -name "*.go" | xargs misspell -error -locale US
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Run tests
working-directory: natssysclient
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go test -v -count=1 work