Skip to content

🌱 Update Go version and dependencies #41

🌱 Update Go version and dependencies

🌱 Update Go version and dependencies #41

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.22.3
- name: Checkout code
uses: actions/checkout@v3
- name: go mod package cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tests
run: go test ./...
- name: Gofumpt
run: ./bin/gofumpt -l -w . 2>&1 | tee outfile && test -z "$(cat outfile)" && rm outfile
- name: go vet
run: go vet ./...
- name: Staticcheck
run: ./bin/staticcheck ./...
- name: Vulncheck
run: ./bin/govulncheck ./...