2021-10-24 05:48:06 +02:00
|
|
|
name: 'Lint'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-03-05 18:22:30 +01:00
|
|
|
branches: [develop]
|
2021-10-24 05:48:06 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [master, develop]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
steps:
|
2023-09-18 22:21:59 +02:00
|
|
|
- uses: 'actions/checkout@v4.0.0'
|
2021-10-24 05:48:06 +02:00
|
|
|
|
2023-05-13 20:28:24 +02:00
|
|
|
- name: 'Setup Node.js'
|
2023-08-24 22:24:29 +02:00
|
|
|
uses: 'actions/setup-node@v3.8.1'
|
2021-10-24 05:48:06 +02:00
|
|
|
with:
|
2023-07-22 16:34:23 +02:00
|
|
|
node-version: '20.x'
|
2021-10-24 05:48:06 +02:00
|
|
|
cache: 'npm'
|
|
|
|
|
2023-05-13 20:28:24 +02:00
|
|
|
- name: 'Install dependencies'
|
|
|
|
run: 'npm clean-install'
|
2021-10-24 05:48:06 +02:00
|
|
|
|
2022-01-07 21:21:38 +01:00
|
|
|
- name: 'lint:commit'
|
|
|
|
run: 'npm run lint:commit -- --to "${{ github.sha }}"'
|
2021-10-24 05:48:06 +02:00
|
|
|
|
2022-01-07 21:21:38 +01:00
|
|
|
- name: 'lint:editorconfig'
|
|
|
|
run: 'npm run lint:editorconfig'
|
|
|
|
|
|
|
|
- name: 'lint:markdown'
|
|
|
|
run: 'npm run lint:markdown'
|
|
|
|
|
2023-01-11 17:39:09 +01:00
|
|
|
- name: 'lint:eslint'
|
|
|
|
run: 'npm run lint:eslint'
|
2022-01-07 21:21:38 +01:00
|
|
|
|
|
|
|
- name: 'lint:prettier'
|
|
|
|
run: 'npm run lint:prettier'
|