Skip to content

Commit

Permalink
chore: upload coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Aug 19, 2020
1 parent 0dcf6c9 commit cf439b0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ on:
push:
branches:
- test
pull_request:
branches:
- test
jobs:
test:
test_compiled_file:
runs-on: ubuntu-latest
steps:
- name: Get current time
Expand All @@ -13,6 +16,7 @@ jobs:
with:
format: YYYYMMDD-HH
utcOffset: "+08:00"

- name: Use current time
env:
TIME: "${{ steps.current-time.outputs.time }}"
Expand All @@ -21,3 +25,15 @@ jobs:
YEAR: "${{ steps.current-time.outputs.year }}"
DAY: "${{ steps.current-time.outputs.day }}"
run: echo $TIME $R_TIME $F_TIME $YEAR $DAY

generate_coverage_report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage/coverage-final.json

0 comments on commit cf439b0

Please sign in to comment.