This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/.github/workflows/lint.yml

43 lines
901 B
YAML
Raw Normal View History

2021-10-24 05:48:06 +02:00
name: 'Lint'
on:
push:
branches: [develop]
2021-10-24 05:48:06 +02:00
pull_request:
branches: [master, develop]
jobs:
lint:
runs-on: 'ubuntu-latest'
steps:
2023-01-11 17:39:09 +01:00
- uses: 'actions/checkout@v3.3.0'
2021-10-24 05:48:06 +02:00
- name: 'Use Node.js'
2023-01-11 17:39:09 +01:00
uses: 'actions/setup-node@v3.6.0'
2021-10-24 05:48:06 +02:00
with:
2022-12-13 11:38:07 +01:00
node-version: '18.x'
2021-10-24 05:48:06 +02:00
cache: 'npm'
- name: 'Install'
run: 'npm install'
- name: 'lint:commit'
run: 'npm run lint:commit -- --to "${{ github.sha }}"'
2021-10-24 05:48:06 +02: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'
- name: 'lint:prettier'
run: 'npm run lint:prettier'
- name: 'lint:dotenv'
2021-10-24 05:48:06 +02:00
uses: 'dotenv-linter/action-dotenv-linter@v2'
with:
github_token: ${{ secrets.github_token }}