Skip to content

Commit 3e5d9da

Browse files
committed
Move coverage upload to Test step of Build job
1 parent 1c28b0f commit 3e5d9da

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/validate.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ jobs:
4040
run: npm run check
4141

4242
- name: 🧪 Test
43+
uses: actions/checkout@master
44+
uses: codecov/codecov-action@v1
4345
run: npm run coverage
46+
run: bash <(curl -s https://codecov.io/bash) # Upload to Codecov
4447

4548
- name: 👷‍♀️ Build
4649
run: npm run build -- --prod
@@ -69,13 +72,3 @@ jobs:
6972
with:
7073
args: deploy --dir=build --prod
7174
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'
72-
73-
codecov:
74-
name: 'Coverage'
75-
runs-on: ubuntu-latest
76-
needs: deploy
77-
steps:
78-
- uses: actions/checkout@v2
79-
- uses: codecov/codecov-action@v1
80-
- run: npm run coverage # Run test
81-
- run: bash <(curl -s https://codecov.io/bash) # Upload to Codecov

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ coverage
44
public
55
.vscode/
66
.netlify
7-
.vercel
7+
.vercel
8+
validate.yml

0 commit comments

Comments
 (0)