forked from metal3-io/ironic-image
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 2.13 KB
/
irso-functional.yml
File metadata and controls
60 lines (58 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: IrSO Functional Tests
on:
pull_request:
types: [ opened, edited, reopened, synchronize, ready_for_review ]
jobs:
test:
runs-on: oracle-vm-4cpu-16gb-x86-64
env:
CLUSTER_TYPE: minikube
CONTAINER_RUNTIME: docker
LOGDIR: /tmp/logs
JUNIT_OUTPUT: /tmp/logs/report.xml
IRONIC_CUSTOM_IMAGE: localhost/ironic:test
# NOTE(dtantsur): change this on stable branches to make sure the correct
# logic is used in IrSO, and also that the tests are skipped properly.
IRONIC_CUSTOM_VERSION: latest
steps:
- name: Check docker version
run: docker --version
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: ironic-image
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.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@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: Setup a minikube cluster
uses: medyagh/setup-minikube@e9e035a86bbc3caea26a450bd4dbf9d0c453682e # v0.0.21
with:
start-args: "--ha"
- name: Prepare tests
run: ironic-standalone-operator/test/prepare.sh
- name: Build and local the image
run: ironic-image/hack/prepare-irso-tests.sh
- name: Run tests
run: ironic-standalone-operator/test/run.sh
- name: Collect logs
run: ironic-standalone-operator/test/collect-logs.sh
if: always()
- name: Upload logs artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: functional
path: /tmp/logs/*
if: always()
- name: Annotate failures
uses: mikepenz/action-junit-report@74626db7353a25a20a72816467ebf035f674c5f8 # v6.2.0
with:
annotate_only: true
report_paths: /tmp/logs/report.xml
if: always()