Skip to content

Commit

Permalink
chore: avoid uneeded runs of codecov workflow (#102)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Nov 22, 2022
1 parent a14cf6d commit d2f4099
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/build.yml
Expand Up @@ -9,24 +9,14 @@ jobs:
uses: charmbracelet/meta/.github/workflows/build.yml@main

codecov:
strategy:
matrix:
go-version: [~1.18, ^1]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Build
run: go build -v ./...

- name: Test
run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m

go-version: '^1'
cache: true
- run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
- uses: codecov/codecov-action@v3
with:
file: ./coverage.txt

0 comments on commit d2f4099

Please sign in to comment.