1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 04:30:31 +09:00

28 lines
582 B
YAML
Raw Permalink Normal View History

2020-07-29 14:34:09 +09:00
name: test
2020-08-01 12:02:11 +09:00
2019-12-23 23:01:33 +09:00
on: [push, pull_request]
2020-08-01 12:02:11 +09:00
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
2020-08-01 12:02:11 +09:00
- uses: actions/checkout@v2
2021-10-07 10:54:11 +09:00
- uses: actions/setup-node@v2
with:
node-version: '16'
2020-08-01 12:02:11 +09:00
2019-11-05 18:54:14 +09:00
- name: Install dependencies
2020-08-20 01:16:30 +09:00
run: yarn install --frozen-lockfile
2020-08-01 12:02:11 +09:00
2019-11-05 18:54:14 +09:00
- name: Test
2019-12-23 23:01:33 +09:00
run: yarn test
2020-08-01 12:02:11 +09:00
2019-11-05 18:54:14 +09:00
- name: Upload coverage
2020-08-01 12:02:11 +09:00
if: ${{ github.event_name != 'pull_request' }}
2019-12-23 23:01:33 +09:00
run: |
2020-06-19 16:15:53 +09:00
cat ./coverage/lcov.info | yarn codacy-coverage
2019-11-05 18:54:14 +09:00
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}