File tree Expand file tree Collapse file tree 2 files changed +32
-4
lines changed
Expand file tree Collapse file tree 2 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ jobs :
13+ ci :
14+ runs-on : ubuntu-24.04
15+ strategy :
16+ matrix :
17+ task : [format, lint]
18+ steps :
19+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+ - uses : jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
21+ - uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
22+ id : cache-node-modules
23+ with :
24+ path : node_modules
25+ key : ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
26+ - run : npm ci
27+ - run : npm run ${{ matrix.task }}
Original file line number Diff line number Diff line change 1111 "build" : " webpack --mode production" ,
1212 "watch" : " webpack --mode development --watch" ,
1313 "test" : " npm run test --ws --if-present" ,
14- "lint" : " npm exec --ws -- eslint --config .eslintrc.json src/**.ts" ,
15- "fix" : " run-s fix:prettier fix:eslint" ,
16- "fix:eslint" : " npm exec --ws -- eslint . --ext .ts --fix" ,
17- "fix:prettier" : " npm exec --ws -- prettier --write . --config ../../package.json --ignore-path ../../.gitignore" ,
14+ "format" : " npm exec --ws -- prettier --check . --config ../../package.json --ignore-path ../../.gitignore" ,
15+ "format:write" : " npm exec --ws -- prettier --write . --config ../../package.json --ignore-path ../../.gitignore" ,
16+ "lint" : " npm exec --ws -- eslint --config .eslintrc.json '**/*.ts'" ,
17+ "lint:fix" : " npm exec --ws -- eslint --config .eslintrc.json --fix '**/*.ts'" ,
18+ "fix" : " run-s format:write lint:fix" ,
1819 "sort" : " npm exec --include-workspace-root --ws -- sort-package-json" ,
1920 "version" : " npm version --ws " ,
2021 "upgrade" : " npm exec --ws -- ncu -u" ,
You can’t perform that action at this time.
0 commit comments