2
1
mirror of https://github.com/Thream/api.git synced 2024-07-21 03:38:31 +02:00
api/.github/workflows/lint.yml

41 lines
869 B
YAML
Raw Permalink Normal View History

name: "Lint"
2021-10-24 04:06:16 +02:00
on:
push:
branches: [develop]
2021-10-24 04:06:16 +02:00
pull_request:
branches: [master, develop]
jobs:
lint:
runs-on: "ubuntu-latest"
2021-10-24 04:06:16 +02:00
steps:
- uses: "actions/checkout@v4.0.0"
2021-10-24 04:06:16 +02:00
- name: "Setup Node.js"
uses: "actions/setup-node@v3.8.1"
2021-10-24 04:06:16 +02:00
with:
node-version: "20.x"
cache: "npm"
2021-10-24 04:06:16 +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"
- name: "lint:eslint"
run: "npm run lint:eslint"
- name: "lint:prettier"
run: "npm run lint:prettier"
- name: "prisma:validate"
run: "cp .env.example .env && npm run prisma:validate"