Skip to content

Commit 9fd40a3

Browse files
committed
SUMO-256677: added eslint test
1 parent 6fea7f5 commit 9fd40a3

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "ESLint validation tests"
2+
on: [workflow_dispatch, pull_request]
3+
4+
jobs:
5+
eslint-validation-test:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
include: # Includes one more job
10+
- dir: 'BlockBlobReader/target/consumer_build'
11+
- dir: 'BlockBlobReader/target/dlqprocessor_build'
12+
- dir: 'BlockBlobReader/target/producer_build'
13+
- dir: 'AppendBlobReader/target/producer_build'
14+
- dir: 'AppendBlobReader/target/appendblob_producer_build'
15+
- dir: 'AppendBlobReader/target/consumer_build'
16+
- dir: 'AppendBlobReader/target/consumer_build'
17+
- dir: 'AppendBlobReader/target/consumer_build'
18+
- dir: 'EventHubs/target/metrics_build'
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Setup node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
28+
- name: Run ESLint
29+
working-directory: ${{ matrix.dir }}
30+
run: |
31+
npm init @eslint/config@latest
32+
eslint . --ext .js,.jsx,.ts,.tsx

.github/workflows/syntax-validation-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Syntax validation tests"
22
on: [workflow_dispatch, pull_request]
33

44
jobs:
5-
package-version-test:
5+
node-syntax-test:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:

0 commit comments

Comments
 (0)