Skip to content

Add Apache 2.0 LICENSE #6

Add Apache 2.0 LICENSE

Add Apache 2.0 LICENSE #6

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
name: Validate (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
- name: gofmt
if: matrix.os == 'ubuntu-latest'
run: |
files=$(gofmt -l .)
if [ -n "$files" ]; then
echo "gofmt needed on:"
echo "$files"
exit 1
fi
- name: go vet
run: go vet ./...
- name: go test
run: go test -race -v -count=1 ./...
- name: govulncheck
if: matrix.os == 'ubuntu-latest'
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...