Skip to content

Commit

Permalink
Merge pull request #27 from yamamotok/feature/test-by-gha
Browse files Browse the repository at this point in the history
Add GHA workflow to run unit tests / Remove Circle CI
  • Loading branch information
yamamotok committed Aug 31, 2023
2 parents 83b1439 + 433277f commit 60eb3d0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .circleci/config.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

0 comments on commit 60eb3d0

Please sign in to comment.