2020-11-07 16:09:08 +08:00
|
|
|
name: 'Tests: linting'
|
|
|
|
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
eclint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-07-28 13:23:56 +08:00
|
|
|
- uses: ljharb/actions/node/install@main
|
|
|
|
name: 'nvm install ${{ matrix.node-version }} && npm install'
|
2020-11-07 16:09:08 +08:00
|
|
|
with:
|
|
|
|
node-version: 'lts/*'
|
2021-07-28 13:23:56 +08:00
|
|
|
- run: npm run eclint
|
2020-11-07 16:09:08 +08:00
|
|
|
|
|
|
|
dockerfile_lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-07-28 13:23:56 +08:00
|
|
|
- uses: ljharb/actions/node/install@main
|
|
|
|
name: 'nvm install ${{ matrix.node-version }} && npm install'
|
2020-11-07 16:09:08 +08:00
|
|
|
with:
|
|
|
|
node-version: 'lts/*'
|
2021-08-05 23:35:22 +08:00
|
|
|
- run: npm run dockerfile_lint
|
2020-11-07 16:09:08 +08:00
|
|
|
|
|
|
|
doctoc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-07-28 13:23:56 +08:00
|
|
|
- uses: ljharb/actions/node/install@main
|
|
|
|
name: 'nvm install ${{ matrix.node-version }} && npm install'
|
2020-11-07 16:09:08 +08:00
|
|
|
with:
|
|
|
|
node-version: 'lts/*'
|
2021-07-28 13:23:56 +08:00
|
|
|
- run: npm run doctoc:check
|
2021-01-04 07:49:05 +08:00
|
|
|
|
|
|
|
test_naming:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: check tests filenames
|
|
|
|
run: ./rename_test.sh --check
|