Skip to content

Commit 74dfe86

Browse files
committed
2 parents bf7b58a + 23c4cc8 commit 74dfe86

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed
Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
32

43
name: Node.js CI
54

@@ -10,21 +9,30 @@ on:
109
branches: [ "main" ]
1110

1211
jobs:
13-
build:
14-
12+
lint:
1513
runs-on: ubuntu-latest
1614

17-
strategy:
18-
matrix:
19-
node-version: [18.x, 20.x, 22.x]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js LTS
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 'lts/*'
21+
cache: 'npm'
22+
- run: npm ci
23+
- name: Run ESLint
24+
run: npm run lint
2025

26+
test:
27+
runs-on: ubuntu-latest
28+
2129
steps:
2230
- uses: actions/checkout@v4
23-
- name: Use Node.js ${{ matrix.node-version }}
31+
- name: Use Node.js LTS
2432
uses: actions/setup-node@v4
2533
with:
26-
node-version: ${{ matrix.node-version }}
34+
node-version: 'lts/*'
2735
cache: 'npm'
2836
- run: npm ci
29-
- run: npm run build --if-present
30-
- run: npm test
37+
- name: Run tests
38+
run: npm test

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default [
55
{ languageOptions: { globals: globals.browser } },
66
pluginJs.configs.recommended,
77
{
8-
ignores: ["**/node_modules/", "examples/**, test/**"],
98
languageOptions: {
109
ecmaVersion: 'latest',
1110
globals: {
@@ -16,4 +15,5 @@ export default [
1615
},
1716
},
1817
},
18+
{ ignores: ["examples/", "node_modules/", "coverage/", "test/"], },
1919
];

0 commit comments

Comments
 (0)