2020-11-24 13:22:00 -07:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-05-22 04:27:54 -07:00
|
|
|
branches: [ master, release* ]
|
2020-11-24 13:22:00 -07:00
|
|
|
pull_request:
|
2022-05-22 04:27:54 -07:00
|
|
|
branches: [ master, release* ]
|
2020-11-24 13:22:00 -07:00
|
|
|
|
|
|
|
jobs:
|
2022-10-10 23:36:35 -07:00
|
|
|
run-escheck:
|
|
|
|
name: Run es-check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-01-05 09:12:38 -07:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-10-10 23:36:35 -07:00
|
|
|
|
|
|
|
- name: Setup node environment
|
2023-01-05 07:17:17 -07:00
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
2022-10-10 23:36:35 -07:00
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
check-latest: true
|
|
|
|
cache: npm
|
|
|
|
|
|
|
|
- name: Install Node.js dependencies
|
|
|
|
run: npm ci --no-audit
|
|
|
|
env:
|
|
|
|
SKIP_PREPARE: true
|
|
|
|
|
|
|
|
- name: Run a production build
|
|
|
|
run: npm run build:production
|
|
|
|
|
|
|
|
- name: Run es-check
|
|
|
|
run: npm run escheck
|
|
|
|
|
2020-11-24 13:22:00 -07:00
|
|
|
run-eslint:
|
|
|
|
name: Run eslint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-01-05 09:12:38 -07:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2020-11-24 13:22:00 -07:00
|
|
|
|
2021-03-01 16:28:44 -07:00
|
|
|
- name: Setup node environment
|
2023-01-05 07:17:17 -07:00
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
2020-11-24 13:22:00 -07:00
|
|
|
with:
|
2022-09-29 22:53:04 -07:00
|
|
|
node-version: 16
|
2021-03-01 16:28:44 -07:00
|
|
|
check-latest: true
|
2022-10-10 23:50:59 -07:00
|
|
|
cache: npm
|
2020-11-30 08:11:55 -07:00
|
|
|
|
2020-11-24 13:22:00 -07:00
|
|
|
- name: Install Node.js dependencies
|
2021-03-01 16:28:44 -07:00
|
|
|
run: npm ci --no-audit
|
2020-11-24 13:22:00 -07:00
|
|
|
env:
|
|
|
|
SKIP_PREPARE: true
|
|
|
|
|
|
|
|
- name: Run eslint
|
2021-03-01 16:28:44 -07:00
|
|
|
run: npm run lint
|
2020-11-24 13:22:00 -07:00
|
|
|
|
2020-11-30 07:59:30 -07:00
|
|
|
run-stylelint-css:
|
|
|
|
name: Run stylelint (css)
|
2020-11-24 13:22:00 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-01-05 09:12:38 -07:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2020-11-24 13:22:00 -07:00
|
|
|
|
2021-03-01 16:28:44 -07:00
|
|
|
- name: Setup node environment
|
2023-01-05 07:17:17 -07:00
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
2020-11-24 13:22:00 -07:00
|
|
|
with:
|
2022-09-29 22:53:04 -07:00
|
|
|
node-version: 16
|
2021-03-01 16:28:44 -07:00
|
|
|
check-latest: true
|
2022-10-10 23:50:59 -07:00
|
|
|
cache: npm
|
2021-03-01 16:28:44 -07:00
|
|
|
|
|
|
|
- name: Set up stylelint matcher
|
2022-08-17 10:22:21 -07:00
|
|
|
uses: xt0rted/stylelint-problem-matcher@34db1b874c0452909f0696aedef70b723870a583 # tag=v1
|
2020-11-30 08:11:55 -07:00
|
|
|
|
2020-11-24 13:22:00 -07:00
|
|
|
- name: Install Node.js dependencies
|
2021-03-01 16:28:44 -07:00
|
|
|
run: npm ci --no-audit
|
2020-11-24 13:22:00 -07:00
|
|
|
env:
|
|
|
|
SKIP_PREPARE: true
|
|
|
|
|
|
|
|
- name: Run stylelint
|
2021-03-01 16:28:44 -07:00
|
|
|
run: npm run stylelint:css
|
2020-11-30 07:59:30 -07:00
|
|
|
|
|
|
|
run-stylelint-scss:
|
|
|
|
name: Run stylelint (scss)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-01-05 09:12:38 -07:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2020-11-30 07:59:30 -07:00
|
|
|
|
2021-03-01 16:28:44 -07:00
|
|
|
- name: Setup node environment
|
2023-01-05 07:17:17 -07:00
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
2020-11-30 07:59:30 -07:00
|
|
|
with:
|
2022-09-29 22:53:04 -07:00
|
|
|
node-version: 16
|
2021-03-01 16:28:44 -07:00
|
|
|
check-latest: true
|
2022-10-10 23:50:59 -07:00
|
|
|
cache: npm
|
2021-03-01 16:28:44 -07:00
|
|
|
|
|
|
|
- name: Set up stylelint matcher
|
2022-08-17 10:22:21 -07:00
|
|
|
uses: xt0rted/stylelint-problem-matcher@34db1b874c0452909f0696aedef70b723870a583 # tag=v1
|
2020-11-30 08:11:55 -07:00
|
|
|
|
2020-11-30 07:59:30 -07:00
|
|
|
- name: Install Node.js dependencies
|
2021-03-01 16:28:44 -07:00
|
|
|
run: npm ci --no-audit
|
2020-11-30 07:59:30 -07:00
|
|
|
env:
|
|
|
|
SKIP_PREPARE: true
|
|
|
|
|
|
|
|
- name: Run stylelint
|
2021-03-01 16:28:44 -07:00
|
|
|
run: npm run stylelint:scss
|