1name: build
2
3on: [push, pull_request]
4
5jobs:
6 build:
7 uses: charmbracelet/meta/.github/workflows/build.yml@main
8
9 snapshot:
10 uses: charmbracelet/meta/.github/workflows/snapshot.yml@main
11 secrets:
12 goreleaser_key: ${{ secrets.GORELEASER_KEY }}
13
14 coverage:
15 runs-on: ubuntu-latest
16 if: ${{ github.event_name == 'pull_request' }}
17 steps:
18 - uses: actions/checkout@v3
19
20 - name: Set up Go
21 uses: actions/setup-go@v3
22 with:
23 go-version: ^1
24
25 - name: Test
26 run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
27 - uses: codecov/codecov-action@v3
28 with:
29 file: ./coverage.txt