Skip to content

🌱 Run the IrSO functional job on ironic-images changes #2

🌱 Run the IrSO functional job on ironic-images changes

🌱 Run the IrSO functional job on ironic-images changes #2

Workflow file for this run

name: IrSO Functional Tests
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
LOGDIR: /tmp/logs
steps:
- name: Update repositories
run: sudo apt update
- name: Install podman
run: sudo apt install -y podman
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: ironic-image
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: metal3-io/ironic-standalone-operator
path: ironic-standalone-operator
- name: Calculate go version
id: vars
run: echo "go_version=$(make -sC ironic-standalone-operator go-version)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: Create a Kind cluster
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
with:
cluster_name: kind
config: ironic-standalone-operator/test/kind.yaml
- name: Prepare tests
run: cd ironic-standalone-operator && ./test/prepare.sh
- name: Run tests
run: ironic-image/hack/ci-e2e.sh
env:
IRSO_PATH: "${{ github.workspace }}/ironic-standalone-operator"
- name: Collect logs
run: ironic-standalone-operator/test/collect-logs.sh
if: always()
- name: Upload logs artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: functional
path: /tmp/logs/*
if: always()