next-app-boilerplate/.github/workflows/lint.yml

37 lines
691 B
YAML
Raw Normal View History

name: 'Lint'
2022-05-16 14:15:29 +02:00
on:
push:
2023-02-10 12:44:23 +01:00
branches: [main]
2022-05-16 14:15:29 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.0.0
- name: Use Node.js
uses: actions/setup-node@v3.1.1
with:
node-version: 18.x
2022-05-16 14:15:29 +02:00
- name: Install dependencies
2022-05-25 22:44:01 +02:00
run: yarn --frozen-lockfile
2022-05-16 14:15:29 +02:00
- name: Next.js linting
2022-05-25 22:44:01 +02:00
run: yarn lint:next
2022-05-16 14:15:29 +02:00
- name: Check types
run: yarn check-types
2022-05-16 14:15:29 +02:00
- name: Prettier linting
2022-05-25 22:44:01 +02:00
run: yarn lint:prettier
2022-05-16 14:15:29 +02:00
- name: Checking editorconfig
run: yarn lint:editorconfig
- name: Commit linting
run: yarn lint:commit -- --to '${{ github.sha }}'