Skip to content

Merge pull request #895 from FozzieHi/dependabot/npm_and_yarn/sapphir… #1765

Merge pull request #895 from FozzieHi/dependabot/npm_and_yarn/sapphir…

Merge pull request #895 from FozzieHi/dependabot/npm_and_yarn/sapphir… #1765

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: "npm ci --ignore-scripts"
- name: Run linting
run: |
npm run prettier:check
npm run eslint:check