From 3e5d9da7fd0a21dbf6f76f44eaf37d96913b4baf Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Tue, 8 Jun 2021 14:47:05 +0300 Subject: [PATCH] Move coverage upload to Test step of Build job --- .github/workflows/validate.yml | 13 +++---------- .prettierignore | 3 ++- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 20849d1..2c3bca3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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 diff --git a/.prettierignore b/.prettierignore index 6fc97ef..f66ab15 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,4 +4,5 @@ coverage public .vscode/ .netlify -.vercel \ No newline at end of file +.vercel +validate.yml \ No newline at end of file