1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-16 20:20:38 +09:00
2021-10-07 10:54:11 +09:00

28 lines
582 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@v2
with:
node-version: '16'
- 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 }}