mirror of
https://github.com/uetchy/namae.git
synced 2025-03-18 04:50:32 +09:00
26 lines
539 B
YAML
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 }}
|