Skip to content

Update release.yml #182

Update release.yml

Update release.yml #182

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- run: go version
- run: go mod tidy
- run: go generate ./...
- run: go build -o ./build/ ./cmd/...
- run: ./build/pathctl -version
- run: go test -v -race -cover -covermode=atomic -coverprofile=coverage.out ./...
- uses: codecov/codecov-action@v3
with:
file: ./coverage.out
verbose: true