Skip to content

Commit 726d22a

Browse files
committed
Add upstream CI for test PR's to main branch
Packit CI, can run test suite against incoming code changes to repository. CI can catch mistakes and failures in new code. Signed-off-by: Patrik Koncity <[email protected]>
1 parent b88f824 commit 726d22a

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.fmf/version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

.packit.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
jobs:
3+
- job: tests
4+
trigger: pull_request
5+
branch: main
6+
targets:
7+
- fedora-rawhide
8+
skip_build: true
9+
tf_extra_params:
10+
environments:
11+
- tmt:
12+
context:
13+
target_PR_branch: main

plans/packit-ci.fmf

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
summary: common test plan for CI
2+
3+
4+
prepare:
5+
- how: shell
6+
script:
7+
- ln -s $(pwd) /var/tmp/attestation-operator_sources || true
8+
- systemctl disable --now dnf-makecache.service || true
9+
- systemctl disable --now dnf-makecache.timer || true
10+
- dnf makecache
11+
12+
environment:
13+
OPERATOR_NAME: "keylime"
14+
OPERATOR_NAMESPACE: "attestation-operator"
15+
16+
discover:
17+
- name: Configure_test_system
18+
how: fmf
19+
url: https://github.com/RedHat-SP-Security/common-cloud-orchestration
20+
ref: main
21+
test:
22+
- /Setup/setup_local_cluster
23+
- /Setup/install_upstream_operator
24+
- name: Run_tests
25+
how: fmf
26+
url: https://github.com/RedHat-SP-Security/attestation-operator-tests
27+
ref: main
28+
test:
29+
- /Setup/install_operator
30+
- /Sanity
31+
- /Setup/clean_cluster
32+
33+
adjust:
34+
- when: distro == rhel-9 or distro == centos-stream-9
35+
prepare+:
36+
- how: shell
37+
script:
38+
- dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
39+
40+
41+
execute:
42+
how: tmt
43+

0 commit comments

Comments
 (0)