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.
api/.github/workflows/lint.yml

41 lines
869 B
YAML
Raw Normal View History

2021-10-24 04:06:16 +02:00
name: 'Lint'
on:
push:
branches: [develop]
2021-10-24 04:06:16 +02:00
pull_request:
branches: [master, develop]
jobs:
lint:
runs-on: 'ubuntu-latest'
steps:
2023-07-02 18:45:54 +02:00
- uses: 'actions/checkout@v3.5.3'
2021-10-24 04:06:16 +02:00
2023-05-13 20:09:02 +02:00
- name: 'Setup Node.js'
2023-01-11 18:02:38 +01:00
uses: 'actions/setup-node@v3.6.0'
2021-10-24 04:06:16 +02:00
with:
2023-07-22 16:26:27 +02:00
node-version: '20.x'
2021-10-24 04:18:18 +02:00
cache: 'npm'
2021-10-24 04:06:16 +02:00
2023-05-13 20:09:02 +02:00
- name: 'Install dependencies'
run: 'npm clean-install'
2021-10-24 04:06:16 +02:00
- name: 'lint:commit'
run: 'npm run lint:commit -- --to "${{ github.sha }}"'
2021-10-24 04:18:18 +02:00
- name: 'lint:editorconfig'
run: 'npm run lint:editorconfig'
- name: 'lint:markdown'
run: 'npm run lint:markdown'
2023-01-11 18:02:38 +01:00
- name: 'lint:eslint'
run: 'npm run lint:eslint'
- name: 'lint:prettier'
run: 'npm run lint:prettier'
2022-08-23 23:53:07 +02:00
- name: 'prisma:validate'
2022-08-29 18:10:17 +02:00
run: 'cp .env.example .env && npm run prisma:validate'