Skip to content

Commit fe71828

Browse files
committed
ci: Add integration test workflow for node-installer
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
1 parent d00f040 commit fe71828

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Integration Test for node-installer
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
integration-test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/download-artifact@v4
13+
with:
14+
path: _artifacts
15+
16+
- name: Install kind
17+
uses: helm/[email protected]
18+
with:
19+
install_only: true
20+
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
24+
- uses: actions/download-artifact@v4
25+
with:
26+
path: _artifacts
27+
28+
- name: Extract musl artifacts
29+
run: |
30+
mkdir -p ./node-installer/.tmp/linux/amd64
31+
mkdir -p ./node-installer/.tmp/linux/arm64
32+
for f in ./_artifacts/*/*-x86_64.tar.gz; do tar -xf $f --directory ./node-installer/.tmp/linux/amd64; done
33+
for f in ./_artifacts/*/*-aarch64.tar.gz; do tar -xf $f --directory ./node-installer/.tmp/linux/arm64; done
34+
35+
- name: Build node-installer image
36+
run: make build-dev-installer-image
37+
working-directory: node-installer
38+
39+
- name: Run integration test
40+
run: ./integration-test.sh
41+
working-directory: node-installer

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ jobs:
2020
needs: build
2121
with:
2222
test: true
23+
node-installer-integration-test:
24+
uses: ./.github/workflows/action-integration-test.yaml
25+
needs: build
26+
if: ${{ ! github.event.pull_request.head.repo.fork }}
2327
publish-node-installer-image:
2428
uses: ./.github/workflows/action-node-installer.yaml
25-
needs: build
29+
needs: [build, node-installer-integration-test]
2630
# This action requires use of the GITHUB_TOKEN to publish the image
2731
# By default, PRs from forks don't have access, so we only run when the PR branch is on origin.
2832
if: ${{ ! github.event.pull_request.head.repo.fork }}

0 commit comments

Comments
 (0)