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-07-05 23:17:44 +00:00
|
|
|
uses: actions/checkout@v3.5.3
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2023-08-14 14:34:10 +00:00
|
|
|
uses: actions/setup-node@v3.8.0
|
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-07-05 23:17:44 +00:00
|
|
|
uses: actions/checkout@v3.5.3
|
2023-07-05 22:42:24 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
2023-08-14 14:34:10 +00:00
|
|
|
uses: actions/setup-node@v3.8.0
|
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
|