Skip to content

Lint

Lint #1

Workflow file for this run

name: Lint
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
jobs:
lint-eslint:
name: Run lint:eslint
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run lint:eslint
run: |
npm run lint:eslint
env:
CI: true
lint-prettier:
name: Run lint:prettier
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run lint:prettier
run: |
npm run lint:prettier
env:
CI: true