Skip to content

Introduce unit + integration testing #60

Introduce unit + integration testing

Introduce unit + integration testing #60

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.22.1'
- name: Verify Go Mod
run: go mod verify
- name: Build
run: make build
- name: Check for pkg vulverabilities
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
- name: Run staticcheck
run: go run honnef.co/go/tools/cmd/staticcheck@latest -f stylish -checks=all,-ST1000,-U1000 ./...
- name: Run golangci-lint
uses: golangci/[email protected]
with:
# during the golangci-lint execution, many files are extracted
# which conflict with those which are cached by the go setup
# and cause an insane amount of log spam.
# This is an ongoing issue with the golangci-lint action, and
# so for now we won't cache the Go artifacts:
# https://github.com/golangci/golangci-lint-action/issues/807
skip-cache: true
- name: Test
run: go test -v ./...