2023-07-05 22:42:24 +00:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-04-24 14:09:10 +00:00
|
|
|
uses: actions/checkout@v4.1.4
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2024-02-07 15:03:35 +00:00
|
|
|
uses: actions/setup-node@v4.0.2
|
2023-07-05 22:42:24 +00:00
|
|
|
with:
|
2023-12-13 21:52:48 +00:00
|
|
|
node-version: '21.x'
|
2023-07-23 18:38:58 +00:00
|
|
|
cache: 'npm'
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Install NPM dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: NPM Build
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-04-24 14:09:10 +00:00
|
|
|
uses: actions/checkout@v4.1.4
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2024-02-07 15:03:35 +00:00
|
|
|
uses: actions/setup-node@v4.0.2
|
2023-07-05 22:42:24 +00:00
|
|
|
with:
|
2023-12-13 21:52:48 +00:00
|
|
|
node-version: '21.x'
|
2023-07-23 18:38:58 +00:00
|
|
|
cache: 'npm'
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Install NPM dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: npm run lint -- --no-fix
|