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-05-06 23:20:47 +00:00
|
|
|
uses: actions/checkout@v4.1.5
|
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:
|
2024-04-26 19:57:51 +00:00
|
|
|
node-version: '22.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-05-06 23:20:47 +00:00
|
|
|
uses: actions/checkout@v4.1.5
|
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:
|
2024-04-26 19:57:51 +00:00
|
|
|
node-version: '22.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
|