Skip to content

Commit ababe7d

Browse files
author
“Kirti
committed
workflow added
1 parent 321e9d1 commit ababe7d

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/nodejs-ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, feature/github-actions-practice ]
66
pull_request:
77
branches: [ master ]
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # Use Node 24 runtime for actions
812

913
jobs:
1014
build:
@@ -17,7 +21,13 @@ jobs:
1721
- name: Setup Node.js
1822
uses: actions/setup-node@v4
1923
with:
20-
node-version: '20'
24+
node-version: '22' # Use Node.js 22 (latest LTS)
2125

2226
- name: Install dependencies
23-
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

Comments
 (0)