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-06-13 15:04:57 +00:00
|
|
|
uses: actions/checkout@v4.1.7
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2024-07-09 14:51:12 +00:00
|
|
|
uses: actions/setup-node@v4.0.3
|
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-06-13 15:04:57 +00:00
|
|
|
uses: actions/checkout@v4.1.7
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2024-07-09 14:51:12 +00:00
|
|
|
uses: actions/setup-node@v4.0.3
|
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
|