2021-07-23 23:15:52 +02:00
|
|
|
name: 'Lint'
|
2020-12-27 17:40:00 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-03-01 09:02:21 +01:00
|
|
|
branches: [develop]
|
2021-05-28 10:13:00 +02:00
|
|
|
pull_request:
|
2020-12-27 17:40:00 +01:00
|
|
|
branches: [master, develop]
|
|
|
|
|
|
|
|
jobs:
|
2021-07-23 23:15:52 +02:00
|
|
|
lint:
|
2021-02-14 19:28:15 +01:00
|
|
|
runs-on: 'ubuntu-latest'
|
2020-12-27 17:40:00 +01:00
|
|
|
steps:
|
2023-05-13 19:25:45 +02:00
|
|
|
- uses: 'actions/checkout@v3.5.2'
|
2020-12-27 17:40:00 +01:00
|
|
|
|
2023-05-13 19:25:45 +02:00
|
|
|
- name: 'Setup Node.js'
|
2023-01-10 20:57:23 +01:00
|
|
|
uses: 'actions/setup-node@v3.6.0'
|
2020-12-27 17:40:00 +01:00
|
|
|
with:
|
2022-02-18 17:20:59 +01:00
|
|
|
node-version: 'lts/*'
|
2021-07-01 09:27:46 +02:00
|
|
|
cache: 'npm'
|
2020-12-27 17:40:00 +01:00
|
|
|
|
2023-05-13 19:25:45 +02:00
|
|
|
- name: 'Install dependencies'
|
|
|
|
run: 'npm clean-install'
|
2020-12-27 17:40:00 +01:00
|
|
|
|
2021-07-23 23:15:52 +02:00
|
|
|
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
|
2021-03-19 14:07:21 +01:00
|
|
|
- run: 'npm run lint:editorconfig'
|
|
|
|
- run: 'npm run lint:markdown'
|
2023-01-10 20:57:23 +01:00
|
|
|
- run: 'npm run lint:eslint'
|
2022-02-18 17:20:59 +01:00
|
|
|
- run: 'npm run lint:prettier'
|