Skip to content
Merged
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
4 changes: 0 additions & 4 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ updates:
interval: weekly
day: monday
time: "06:00"
reviewers:
- cloudnode-pro/development

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "06:00"
reviewers:
- cloudnode-pro/development
45 changes: 40 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org/
cache: npm

Expand All @@ -32,9 +32,6 @@ jobs:
- name: Build
run: npm run build

- name: Test
run: npm run test

- name: Pack
run: npm pack

Expand All @@ -43,6 +40,44 @@ jobs:
with:
name: package
path: cldn-ip-0.0.0-dev.tgz

test:
name: Test on Node.js ${{ matrix.node }}
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
node: [20, 22, 24]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
cache: npm

- name: Install latest NPM
run: npm i -g npm@latest

- name: Install test dependencies
run: npm ci

- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: package
path: .

- name: Extract build package
run: tar -xzf cldn-ip-0.0.0-dev.tgz --strip-components=1 -C . --overwrite

- name: Test
run: npm run test

publish:
name: Publish
needs: build
Expand All @@ -59,7 +94,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org/
cache: npm

Expand Down