Skip to content

Commit

Permalink
Switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelzahn authored Jul 16, 2024
1 parent 275702d commit 66e805e
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
# More details at https://github.com/eslint/eslint
# and https://eslint.org

name: ESLint
name: AMA ESLint

defaults:
run:
working-directory: loama

on:
push:
Expand All @@ -19,6 +23,27 @@ on:
- cron: '33 15 * * 4'

jobs:
cache-and-install:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
Expand All @@ -32,12 +57,12 @@ jobs:

- name: Install ESLint
run: |
npm install [email protected]
npm install @microsoft/[email protected]
pnpm install [email protected]
pnpm install @microsoft/[email protected]
- name: Run AMA ESLint
run: npx eslint loama/
--config loama/.eslintrc.cjs
- name: Run ESLint
run: pnpm exec eslint .
--config .eslintrc.cjs
--ext .js,.jsx,.ts,.tsx
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
Expand Down

0 comments on commit 66e805e

Please sign in to comment.