Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,31 @@ jobs:
matrix:
os: [ubuntu-latest]
node-version: [20, 22, 24]
include:
- os: windows-latest
node-version: 22 # LTS
- os: macos-latest
node-version: 22 # LTS
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Start DB2 container
run: |
docker run -d --name db2 -e ACCEPT_EULA=TRUE -e LICENSE=accept -p 60000:50000 -v db2data:/db2data ibmcom/db2
- name: Wait for DB2 to be ready
run: |
echo "Waiting for DB2 to start..."
for i in {1..200}; do
if docker exec db2 su - db2inst1 -c 'db2 get instance' > /dev/null 2>&1; then
echo "DB2 is ready!"
break
fi
echo "Still waiting... ($i)"
sleep 5
done
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm ci
- name: Run test
run: npm test --ignore-scripts

Expand All @@ -44,7 +55,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22 # LTS
- run: npm install --ignore-scripts
- run: npm ci --ignore-scripts
- name: Verify code linting
run: npx --no eslint .

Expand All @@ -60,6 +71,6 @@ jobs:
with:
node-version: 22 # LTS
- name: Install dependencies
run: npm install
run: npm ci
- name: Verify commit linting
run: npx commitlint --from origin/master --to HEAD --verbose
Loading
Loading