Skip to content
Permalink
Browse files
Specify files and add testing
  • Loading branch information
thomasrockhu committed Jul 10, 2020
1 parent f357072 commit 89692c91b789e3d9ae3e025044159773e2244a92
Showing with 6,183 additions and 296 deletions.
  1. +9 −4 .github/workflows/main.yml
  2. +1 −0 README.md
  3. +3 −0 action.yml
  4. +1,153 −221 dist/index.js
  5. +9 −0 index.js
  6. +4 −0 jest.config.js
  7. +4,939 −68 package-lock.json
  8. +12 −3 package.json
  9. +11 −0 src/calculator/calculator.test.ts
  10. +10 −0 src/calculator/calculator.ts
  11. +11 −0 src/index/index.test.ts
  12. +21 −0 src/index/index.ts
@@ -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/[email protected]
- name: Checkout
uses: actions/[email protected]
- 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
@@ -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
@@ -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

0 comments on commit 89692c9

Please sign in to comment.