2021-02-01 02:24:11 +00:00
|
|
|
name: Lint and test JS
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-lint-js:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Cancel Previous Runs
|
|
|
|
uses: styfle/cancel-workflow-action@0.7.0
|
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
2022-03-09 03:02:52 +00:00
|
|
|
uses: actions/setup-node@v2.5.1
|
2021-02-01 02:24:11 +00:00
|
|
|
with:
|
|
|
|
node-version: '14'
|
2022-03-04 04:01:16 +00:00
|
|
|
- name: Install PNPM and install dependencies
|
|
|
|
uses: pnpm/action-setup@v2.2.1
|
|
|
|
with:
|
|
|
|
version: ^6.24.2
|
|
|
|
run_install: true
|
2021-02-01 02:24:11 +00:00
|
|
|
- name: Lint and test the JS
|
|
|
|
run: bin/js_lint_test.sh
|
|
|
|
shell: bash
|