Skip to content

Commit

Permalink
GitHub Actions: Add JavaScript Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jan 16, 2024
1 parent 23ad9a5 commit 37dfe91
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,24 @@ jobs:
- name: Run package.json Lint
if: success() || failure()
run: npm run lint:pkg-json

Unit-test-js:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: npm

- name: Install Dependencies
run: npm i

- name: Compile JavaScript App
run: npm run build

- name: Run JavaScript unit tests
run: npm run test:unit

0 comments on commit 37dfe91

Please sign in to comment.