Skip to content

Merge pull request #27 from yamamotok/feature/test-by-gha #7

Merge pull request #27 from yamamotok/feature/test-by-gha

Merge pull request #27 from yamamotok/feature/test-by-gha #7

Workflow file for this run

name: Test
on:
pull_request:
branches:
- master
- develop
push:
branches:
- master
- develop
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Test with collecting coverage
run: npm run test:coverage
- name: Update coverage report
uses: codecov/codecov-action@v3
with:
token: ''
fail_ci_if_error: true
verbose: false