Skip to content

Merge pull request #628 from FozzieHi/dependabot/npm_and_yarn/sentry/… #1011

Merge pull request #628 from FozzieHi/dependabot/npm_and_yarn/sentry/…

Merge pull request #628 from FozzieHi/dependabot/npm_and_yarn/sentry/… #1011

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: ["18"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Cache node modules
uses: actions/cache@v3
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