build.yml

 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    steps:
17      - uses: actions/checkout@v3
18
19      - name: Set up Go
20        uses: actions/setup-go@v3
21        with:
22          go-version: ^1
23
24      - name: Test
25        run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
26      - uses: codecov/codecov-action@v3
27        with:
28          file: ./coverage.txt