Skip to content

Commit

Permalink
Move coverage upload to Test step of Build job
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Jun 8, 2021
1 parent 1c28b0f commit 3e5d9da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
run: npm run check

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

- name: 👷‍♀️ Build
run: npm run build -- --prod
Expand Down Expand Up @@ -69,13 +72,3 @@ jobs:
with:
args: deploy --dir=build --prod
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'

codecov:
name: 'Coverage'
runs-on: ubuntu-latest
needs: deploy
steps:
- uses: actions/checkout@v2
- uses: codecov/codecov-action@v1
- run: npm run coverage # Run test
- run: bash <(curl -s https://codecov.io/bash) # Upload to Codecov
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ coverage
public
.vscode/
.netlify
.vercel
.vercel
validate.yml

1 comment on commit 3e5d9da

@vercel
Copy link

@vercel vercel bot commented on 3e5d9da Jun 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.