File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed
Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change 1- # This workflow uses actions that are not certified by GitHub.
2- # They are provided by a third-party and are governed by
3- # separate terms of service, privacy policy, and support
4- # documentation.
5- # ESLint is a tool for identifying and reporting on patterns
6- # found in ECMAScript/JavaScript code.
7- # More details at https://github.com/eslint/eslint
8- # and https://eslint.org
9-
10- name : ESLint
1+ name : Javascript
112
123on :
134 push :
145 branches : ["main"]
156 paths :
16- - frontend/**
7+ - frontend/**
178 pull_request :
189 # The branches below must be a subset of the branches above
1910 branches : ["main"]
11+ workflow_dispatch :
2012
2113jobs :
2214 eslint :
@@ -26,16 +18,26 @@ jobs:
2618 contents : read
2719 security-events : write
2820 actions : read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
21+ strategy :
22+ matrix :
23+ node-version : [20]
2924 steps :
3025 - name : Checkout code
3126 uses : actions/checkout@v4
32-
33- - name : Install ESLint
27+ - name : Install pnpm
28+ uses : pnpm/action-setup@v4
29+ with :
30+ version : 9
31+ - name : Use Node.js ${{ matrix.node-version }}
32+ uses : actions/setup-node@v4
33+ with :
34+ node-version : ${{ matrix.node-version }}
35+ cache : " pnpm"
36+ - name : Install dependencies
3437 run : |
3538 cd ./frontend
36- npm install
37-
39+ pnpm install --frozen-lockfile
3840 - name : Run ESLint
3941 run : |
4042 cd ./frontend
41- npm run lint
43+ pnpm run lint
You can’t perform that action at this time.
0 commit comments