chore: fix workflow

This commit is contained in:
2020-08-01 12:03:22 +09:00
parent a8c681689e
commit d7ab5da417
@@ -1,17 +1,24 @@
name: test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@master
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Install dependencies
run: yarn install
- name: Test
run: yarn test
- name: Upload coverage
if: ${{ github.event_name != 'pull_request' }}
run: |
cat ./coverage/lcov.info | yarn codacy-coverage
env: