Skip to content

Commit 65c7e4c

Browse files
committed
run JS-lints only on bechmarks
1 parent c480c47 commit 65c7e4c

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

.github/workflows/js-lint.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: JS linters
2+
3+
# Cancel workflow if there is a new change to the branch.
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
7+
8+
on:
9+
merge_group:
10+
pull_request:
11+
branches:
12+
- main
13+
push:
14+
branches:
15+
- main
16+
paths:
17+
- 'benchmarks/**'
18+
19+
jobs:
20+
run-js-linters:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: "18"
27+
- run: |
28+
cd benchmarks/
29+
corepack enable
30+
yarn install --immutable
31+
yarn js-lint
32+
yarn js-fmt-check

.github/workflows/scripts-lint.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,3 @@ jobs:
6969
# https://github.com/hadolint/hadolint/wiki/DL3008
7070
# https://github.com/hadolint/hadolint/wiki/DL3018
7171
ignore: DL3008,DL3018
72-
73-
run-js-linters:
74-
runs-on: ubuntu-latest
75-
steps:
76-
- uses: actions/checkout@v4
77-
- uses: actions/setup-node@v4
78-
with:
79-
node-version: "18"
80-
- run: |
81-
cd benchmarks/
82-
corepack enable
83-
yarn install --immutable
84-
yarn js-lint
85-
yarn js-fmt-check

0 commit comments

Comments
 (0)