Skip to content

Commit 4ea85da

Browse files
committed
chore: fix ci
Signed-off-by: dhmlau <dhmlau@ca.ibm.com>
1 parent 37f0f8d commit 4ea85da

File tree

2 files changed

+973
-3
lines changed

2 files changed

+973
-3
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,18 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- uses: actions/checkout@v4
31+
- name: Set up Docker
32+
uses: actions/setup-docker@v2
33+
- name: Start DB2 container
34+
run: |
35+
docker run -d --name db2 -e ACCEPT_EULA=TRUE -p 60000:50000 -v db2data:/db2data ibmcom/db2
36+
- name: Wait for DB2 to be ready
37+
run: sleep 10
3138
- name: Use Node.js ${{ matrix.node-version }}
3239
uses: actions/setup-node@v4
3340
with:
3441
node-version: ${{ matrix.node-version }}
35-
- run: npm install
42+
- run: npm ci
3643
- name: Run test
3744
run: npm test --ignore-scripts
3845

@@ -44,7 +51,7 @@ jobs:
4451
- uses: actions/setup-node@v4
4552
with:
4653
node-version: 22 # LTS
47-
- run: npm install --ignore-scripts
54+
- run: npm ci --ignore-scripts
4855
- name: Verify code linting
4956
run: npx --no eslint .
5057

@@ -60,6 +67,6 @@ jobs:
6067
with:
6168
node-version: 22 # LTS
6269
- name: Install dependencies
63-
run: npm install
70+
run: npm ci
6471
- name: Verify commit linting
6572
run: npx commitlint --from origin/master --to HEAD --verbose

0 commit comments

Comments
 (0)