Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Add upstream CI for test PR's to main branch #257

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
13 changes: 13 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
jobs:
- job: tests
trigger: pull_request
branch: main
targets:
- fedora-stable
skip_build: true
tf_extra_params:
environments:
- tmt:
context:
target_PR_branch: main
36 changes: 36 additions & 0 deletions packit-ci.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
summary: CI for PR's to main branch


prepare:
- how: shell
script:
- ln -s $(pwd) /var/tmp/tang-operator_sources || true
- systemctl disable --now dnf-makecache.service || true
- systemctl disable --now dnf-makecache.timer || true
- dnf makecache

environment:
TANG_IMAGE: "quay.io/sec-eng-special/fedora_tang_server"
UPSTREAM_OPERATOR: "true"
REPO_CLONE: "tang"

discover:
- name: Configure_test_system
how: fmf
url: https://github.com/RedHat-SP-Security/common-cloud-orchestration
ref: main
test:
- /Setup/setup_local_cluster
- name: Run_tests
how: fmf
url: https://github.com/RedHat-SP-Security/tang-operator-tests
ref: main
test:
- /Setup/install_upstream_tang-operator
- /Setup/creating_test_namespace
- /Sanity
- /Setup/clean_cluster

execute:
how: tmt