2023-10-23 23:11:41 +02:00
|
|
|
name: "Lint"
|
2023-01-02 15:23:16 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [develop]
|
|
|
|
pull_request:
|
|
|
|
branches: [master, develop]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2023-10-23 23:11:41 +02:00
|
|
|
runs-on: "ubuntu-latest"
|
2023-01-02 15:23:16 +01:00
|
|
|
steps:
|
2023-11-23 00:37:15 +01:00
|
|
|
- uses: "actions/checkout@v4.1.1"
|
2023-01-02 15:23:16 +01:00
|
|
|
|
2023-10-23 23:11:41 +02:00
|
|
|
- name: "Setup Node.js"
|
2024-04-06 20:10:13 +02:00
|
|
|
uses: "actions/setup-node@v4.0.2"
|
2023-01-02 15:23:16 +01:00
|
|
|
with:
|
2023-10-23 23:11:41 +02:00
|
|
|
node-version: "lts/*"
|
|
|
|
cache: "npm"
|
2023-01-02 15:23:16 +01:00
|
|
|
|
2023-10-23 23:11:41 +02:00
|
|
|
- name: "Install dependencies"
|
|
|
|
run: "npm clean-install"
|
2023-01-02 15:23:16 +01:00
|
|
|
|
|
|
|
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
|
2023-10-23 23:11:41 +02:00
|
|
|
- run: "npm run lint:editorconfig"
|
|
|
|
- run: "npm run lint:markdown"
|
|
|
|
- run: "npm run lint:eslint"
|
|
|
|
- run: "npm run lint:prettier"
|
2024-01-09 23:20:17 +01:00
|
|
|
- run: "npm run lint:javascript"
|