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

37 lines
691 B
YAML

name: 'Lint'
on:
push:
branches: [main]
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
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Next.js linting
run: yarn lint:next
- name: Check types
run: yarn check-types
- name: Prettier linting
run: yarn lint:prettier
- name: Checking editorconfig
run: yarn lint:editorconfig
- name: Commit linting
run: yarn lint:commit -- --to '${{ github.sha }}'