Skip to content

chore: update CI and go.mod; bring in dryrun feature #15

chore: update CI and go.mod; bring in dryrun feature

chore: update CI and go.mod; bring in dryrun feature #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -coverprofile=coverage.out ./...
env:
GOPATH: /home/runner/go
- name: Upload coverage
uses: codecov/codecov-action@v3
if: matrix.go-version == 'stable'
with:
files: coverage.out
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest