Skip to content

Commit

Permalink
Specify files and add testing
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Jul 10, 2020
1 parent f357072 commit 89692c9
Show file tree
Hide file tree
Showing 12 changed files with 6,183 additions and 296 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
@@ -1,14 +1,19 @@
name: Example workflow for Codecov
name: Workflow for Codecov Action
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout
uses: actions/checkout@master
- name: Install dependencies
run: npm install
- name: Run tests and collect coverage
run: yarn run test-all
- name: Upload coverage to Codecov
uses: ./
with:
#commenting out token because tokenless uploads are now supported
#token: ${{secrets.CODECOV_TOKEN}}
files: ./coverage/calculator/coverage-final.json,./coverage/index/coverage-final.json
file: ./coverage/coverage-final.json
flags: unittest
name: codecov-1
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -71,6 +71,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
files: ./coverage1.xml,./coverage2.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Expand Up @@ -11,6 +11,9 @@ inputs:
file:
description: 'Path to coverage file to upload'
required: false
files:
description: 'Comma-separated list of files to upload'
required: false
flags:
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
required: false
Expand Down

0 comments on commit 89692c9

Please sign in to comment.