Skip to content

Commit

Permalink
GitHub Actions: Add JavaScript Unit Test (#508)
Browse files Browse the repository at this point in the history
* GitHub Actions: Add JavaScript Unit Test

* Update names
  • Loading branch information
t-hamano authored Feb 6, 2024
1 parent 402d67f commit f67f921
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- trunk
jobs:
Lint:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -41,3 +42,25 @@ jobs:
- name: Run package.json Lint
if: success() || failure()
run: npm run lint:pkg-json

unit-test-js:
name: JavaScript Unit Test
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 f67f921

Please sign in to comment.