1 parent 321e9d1 commit ababe7dCopy full SHA for ababe7d
1 file changed
.github/workflows/nodejs-ci.yml
@@ -2,9 +2,13 @@ name: Node.js CI
2
3
on:
4
push:
5
- branches: [ master ]
+ branches: [ master, feature/github-actions-practice ]
6
pull_request:
7
branches: [ master ]
8
+ workflow_dispatch:
9
+
10
+env:
11
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # Use Node 24 runtime for actions
12
13
jobs:
14
build:
@@ -17,7 +21,13 @@ jobs:
17
21
- name: Setup Node.js
18
22
uses: actions/setup-node@v4
19
23
with:
20
- node-version: '20'
24
+ node-version: '22' # Use Node.js 22 (latest LTS)
25
26
- name: Install dependencies
- run: npm ci
27
+ run: npm ci
28
29
+ - name: Run tests
30
+ run: npm test -- --passWithNoTests --watchAll=false
31
32
+ - name: Build project
33
+ run: npm run build
0 commit comments