Skip to content

Commit

Permalink
ci: add github-action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rynhndrcksn committed Sep 1, 2024
1 parent 60c824a commit b5f727d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/github-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "CI"

on: [ "pull-request" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.22.x', '1.23.x' ]

steps:
- uses: actions/checkout@v4
- name: "Set up Go..."
uses: WillAbides/setup-go-faster@v1
with:
go-version: ${{ matrix.go }}
- name: "Install dependencies..."
run: go get .
- name: "Vetting code..."
run: go vet ./...
- uses: dominikh/staticcheck-action@v1
with:
version: "latest"
install-go: false
cache-key: ${{ matrix.go }}
- name: "Running tests..."
run: go test -race -vet=off ./...

0 comments on commit b5f727d

Please sign in to comment.