Skip to content

Commit

Permalink
Add Check JavaScript action.
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-lee committed May 2, 2024
1 parent dbe0f67 commit aaa793b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/check-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Check JavaScript

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
lint_test:
name: Lint and test
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Chrome
uses: browser-actions/setup-chrome@v1

# - name: Install Firefox
# uses: browser-actions/setup-firefox@v1

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install npm
# Install the version of npm that is required to build the project.
run: npm install -g npm@10

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm test

- name: Generate coverage report
run: npm run coverage

0 comments on commit aaa793b

Please sign in to comment.