From 02fd650d8858402cd1762b45c1e944cd065b6825 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 18 Jul 2023 16:49:28 -0400 Subject: [PATCH] fix: disable codecov on push --- .github/workflows/build.yml | 16 ---------------- .github/workflows/coverage.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb6b091140633fe1e1c541bc242b3941f2873ddd..20a7a220d2e44335e183674d628913482b22c0a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,19 +10,3 @@ jobs: uses: charmbracelet/meta/.github/workflows/snapshot.yml@main secrets: goreleaser_key: ${{ secrets.GORELEASER_KEY }} - - coverage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: ^1 - - - name: Test - run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m - - uses: codecov/codecov-action@v3 - with: - file: ./coverage.txt diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000000000000000000000000000000000000..a638bc6fe1dfb6dcd431714c194fce69631e7b7d --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,20 @@ +name: coverage + +on: [pull_request] + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ^1 + + - name: Test + run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m + - uses: codecov/codecov-action@v3 + with: + file: ./coverage.txt