Skip to content

Commit

Permalink
Add Github workflow for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmjssz committed Aug 12, 2024
1 parent 0a8a4cf commit 4efc2c5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Unit Tests
on:
pull_request:
push:
branches:
- main
- development
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn

- name: Yarn install
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Test
run: yarn coverage

- name: Upload coverage report
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: coverage/lcov.info

0 comments on commit 4efc2c5

Please sign in to comment.