Skip to content

Commit

Permalink
github/workflows: Add integration test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Apr 6, 2024
1 parent 51b2901 commit 4db7687
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/tests-deploy-cluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test Deployment (Cluster)
run-name: "${{ github.ref_name }}: Test Deployment (Cluster)"

on:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-cluster:
name: Cluster
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
k8sVersion:
- v1.26.13
- v1.27.10
- v1.28.6
distro:
- ubuntu22
networkPlugin:
- calico

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup environment
uses: ./.github/actions/runner-setup

- name: Deploy cluster
run: |
./tests/deploy-cluster.sh k8s \
${{ matrix.distro }} \
${{ matrix.networkPlugin }} \
${{ matrix.k8sVersion }}
- name: Test
run: |
./tests/test-cluster.sh
52 changes: 52 additions & 0 deletions .github/workflows/tests-deploy-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Test Deployment (Single Node)
run-name: "${{ github.ref_name }}: Test Deployment (Single Node)"

on:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-single-node:
name: Node
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
k8sVersion:
- v1.26.13
- v1.27.10
- v1.28.6
distro:
- ubuntu22
- debian12
- centos9
- rocky9
networkPlugin:
- calico
- cilium
- flannel
- kube-router

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup environment
uses: ./.github/actions/runner-setup

- name: Deploy single node
run: |
./scripts/deploy-node.sh k8s \
${{ matrix.distro }} \
${{ matrix.networkPlugin }} \
${{ matrix.k8sVersion }}
- name: Test
run: |
./scripts/test-cluster.sh

0 comments on commit 4db7687

Please sign in to comment.