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

36 lines
668 B
YAML
Raw Normal View History

2022-05-16 14:15:29 +02:00
name: 'Lint tests'
on:
push:
branches: [develop]
pull_request:
2022-05-16 21:34:00 +02:00
branches: [master, develop]
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: 16.x
- name: Install packages
run: npm ci
2022-05-16 21:35:19 +02:00
- name: lint:commit
run: npm run lint:commit -- --to "${{ github.sha }}"
2022-05-16 14:15:29 +02:00
- name: Next.js linting
run: npm run lint:next
- name: Prettier linting
run: npm run lint:prettier
- name: Stylelint linting
run: npm run lint:scss