1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 20:40:32 +09:00
2020-08-20 01:16:30 +09:00

26 lines
539 B
YAML

name: test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test
- name: Upload coverage
if: ${{ github.event_name != 'pull_request' }}
run: |
cat ./coverage/lcov.info | yarn codacy-coverage
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}