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

39 lines
742 B
YAML

name: 'Lint'
on:
push:
branches: [develop]
pull_request:
branches: [master, develop]
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: 16.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 }}'