Skip to content

merge

merge #6

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
env:
GOPROXY: https://proxy.golang.org,direct
GOSUMDB: sum.golang.org
jobs:
build-test:
name: Test, Vet, Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test ./...
- name: Run go vet
run: go vet ./...
- name: Run govulncheck
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
- name: Build Go packages
run: go build ./...
- name: Build Docker image
run: docker build --build-arg GOPROXY="$GOPROXY" --build-arg GOSUMDB="$GOSUMDB" .