02fd650d8858402cd1762b45c1e944cd065b6825

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

fix: disable codecov on push

Diff

 1diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
 2index fb6b091140633fe1e1c541bc242b3941f2873ddd..20a7a220d2e44335e183674d628913482b22c0a7 100644
 3--- a/.github/workflows/build.yml
 4+++ b/.github/workflows/build.yml
 5@@ -10,19 +10,3 @@ jobs:
 6     uses: charmbracelet/meta/.github/workflows/snapshot.yml@main
 7     secrets:
 8       goreleaser_key: ${{ secrets.GORELEASER_KEY }}
 9-
10-  coverage:
11-    runs-on: ubuntu-latest
12-    steps:
13-      - uses: actions/checkout@v3
14-
15-      - name: Set up Go
16-        uses: actions/setup-go@v4
17-        with:
18-          go-version: ^1
19-
20-      - name: Test
21-        run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
22-      - uses: codecov/codecov-action@v3
23-        with:
24-          file: ./coverage.txt
25diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
26new file mode 100644
27index 0000000000000000000000000000000000000000..a638bc6fe1dfb6dcd431714c194fce69631e7b7d
28--- /dev/null
29+++ b/.github/workflows/coverage.yml
30@@ -0,0 +1,20 @@
31+name: coverage
32+
33+on: [pull_request]
34+
35+jobs:
36+  coverage:
37+    runs-on: ubuntu-latest
38+    steps:
39+      - uses: actions/checkout@v3
40+
41+      - name: Set up Go
42+        uses: actions/setup-go@v4
43+        with:
44+          go-version: ^1
45+
46+      - name: Test
47+        run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
48+      - uses: codecov/codecov-action@v3
49+        with:
50+          file: ./coverage.txt