Skip to content

Commit c076e1b

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.
1 parent 55a76ae commit c076e1b

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
summary: common test plan for CI
2+
3+
4+
prepare:
5+
- how: shell
6+
script:
7+
- systemctl disable --now dnf-makecache.service || true
8+
- systemctl disable --now dnf-makecache.timer || true
9+
- dnf makecache
10+
11+
environment:
12+
OPERATOR_NAME: "keylime"
13+
OPERATOR_NAMESPACE: "attestation-operator"
14+
15+
discover:
16+
- name: Configure_test_system
17+
how: fmf
18+
url: https://github.com/RedHat-SP-Security/common-cloud-orchestration
19+
ref: main
20+
test:
21+
- /Setup/setup_local_cluster
22+
- name: Run_tests
23+
how: fmf
24+
url: https://github.com/RedHat-SP-Security/attestation-operator-tests
25+
ref: main
26+
test:
27+
- /Setup/install_operator
28+
- /Sanity
29+
- /Setup/clean_cluster
30+
31+
adjust:
32+
- when: distro == rhel-9 or distro == centos-stream-9
33+
prepare+:
34+
- how: shell
35+
script:
36+
- 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
37+
38+
39+
execute:
40+
how: tmt
41+

0 commit comments

Comments
 (0)