Skip to content

🥤 Buy me a coffee #36

🥤 Buy me a coffee

🥤 Buy me a coffee #36

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.21.4
- 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 ./...