Skip to content

Commit

Permalink
ci: upload only one coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj authored and okonet committed Apr 4, 2020
1 parent 329be82 commit 0eab19a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/test.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: CI

on:
push:
Expand Down Expand Up @@ -47,23 +47,32 @@ jobs:
key: yarn-${{ runner.os }}-${{ runner.node }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-${{ runner.os }}-${{ runner.node }}-
# Print current Node.js version
- run: node --version
# Print current Yarn version
- run: yarn --version
# Print current Git version
- run: git --version
# Install node_modules
- run: yarn
# Run tests
- run: yarn test
# Upload coverage artifact from a single matrix entry
- uses: actions/upload-artifact@v1
if: matrix.os == 'ubuntu-latest' && matrix.node == '13'
with:
name: coverage-${{ runner.os }}-${{ runner.node }}
name: coverage
path: coverage

codecov:
name: codecov.io
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
# Upload coverage artifact
- uses: actions/download-artifact@v1
with:
name: coverage-${{ runner.os }}-${{ runner.node }}
- uses: actions/checkout@v2
name: coverage
# Run codecov.io
- uses: codecov/codecov-action@v1

0 comments on commit 0eab19a

Please sign in to comment.