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
|
|
|
|
container: ubuntu
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-25 14:44:53 +00:00
|
|
|
uses: actions/checkout@v4.1.0
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2023-08-17 15:02:25 +00:00
|
|
|
uses: actions/setup-node@v3.8.1
|
2023-07-05 22:42:24 +00:00
|
|
|
with:
|
|
|
|
node-version: '20.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
|
2023-09-25 14:44:53 +00:00
|
|
|
uses: actions/checkout@v4.1.0
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2023-08-17 15:02:25 +00:00
|
|
|
uses: actions/setup-node@v3.8.1
|
2023-07-05 22:42:24 +00:00
|
|
|
with:
|
|
|
|
node-version: '20.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
|