Skip to content

Commit

Permalink
Move CI to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
  • Loading branch information
piotrpio committed Apr 19, 2024
1 parent 9d4b227 commit efef8d5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Testing
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5

- name: Install deps
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
export GOPATH="$RUNNER_WORKSPACE"
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/client9/misspell/cmd/misspell@latest
- name: Static check
run: |
$(exit $(go fmt ./... | wc -l))
go vet -modfile=go_test.mod ./...
GOFLAGS="-mod=mod -modfile=go_test.mod" staticcheck ./...
find . -type f -name "*.go" | xargs misspell -error -locale US
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: jetstream

0 comments on commit efef8d5

Please sign in to comment.