Skip to content

Migration to GHA

Migration to GHA #28

Workflow file for this run

name: Backup Restore CI
on:
push:
branches:
- 'release/v5.0'
paths-ignore:
- 'docs/**'
- '*.md'
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
pull_request:
branches:
- 'release/v5.0'
paths-ignore:
- 'docs/**'
- '*.md'
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
jobs:
build:
strategy:
matrix:
include:
- platform: linux/amd64
- platform: linux/arm64
name : CI
runs-on : ubuntu-latest
outputs:
k3sversions: ${{ steps.support.outputs.k3sversions }}
steps:
- name : Checkout repository
uses : actions/checkout@v4
- name: Set K3s support output
id : support
run: echo "k3sversions=[\"hello\", \"world\"]" >> $GITHUB_OUTPUT
- name : CI
run : make ci
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bro-build-artifacts
path: ./dist/artifacts
test:
name : integration-test
needs : [
build
]
runs-on : ubuntu-latest
strategy:
matrix:
K3S_VERSION : ${{ fromJSON(needs.build.outputs.k3sversions) }}
steps:
- name : Checkout repository
uses : actions/checkout@v4
- name : Fetch build artifacts
uses: actions/download-artifact@v4
with:
name: bro-build-artifacts
path: ./dist/artifacts
- name : Debug
run : ls -R ./dist/artifacts
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name : Setup up K3d
run : ./.github/workflows/e2e/scripts/install-k3d.sh
- name : Setup up mc
run : ./.github/workflows/e2e/scripts/install-mc.sh
- name : Setup k3d cluster
run : CLUSTER_NAME=backup-restore K3S_VERSION=${{ matrix.K3S_VERSION }} ./.github/workflows/e2e/scripts/setup-cluster.sh
- name : Run integration tests
run : ./scripts/integration