Skip to content

Commit 86c8ca7

Browse files
authored
Merge pull request #37 from crisanlucid/fix/nodejs-ci-cleanup
fix(ci): enable tests in Node.js CI, add npm cache, split steps
2 parents d2f4a51 + 86d2150 commit 86c8ca7

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# 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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Node.js CI
52

63
on:
@@ -11,7 +8,6 @@ on:
118

129
jobs:
1310
build:
14-
1511
runs-on: ubuntu-latest
1612

1713
steps:
@@ -20,8 +16,10 @@ jobs:
2016
uses: actions/setup-node@v4
2117
with:
2218
node-version: '22'
23-
- name: Install Dependencies
24-
run: npm ci && npm run build
25-
26-
# - name: Test
27-
# run: npm ci && npm test
19+
cache: 'npm'
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build
23+
run: npm run build
24+
- name: Test
25+
run: npm test

0 commit comments

Comments
 (0)