diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.github/workflows/ruby_tests.yml b/.github/workflows/ruby_tests.yml deleted file mode 100644 index cd7feae08..000000000 --- a/.github/workflows/ruby_tests.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Ruby Tests -on: pull_request - -jobs: - rubocop: - uses: theforeman/actions/.github/workflows/rubocop.yml@v0 - with: - command: bundle exec rubocop --parallel --format github - test_ruby: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - ruby-version: ['2.7.4', '3.0.2', '3.1.3', '3.2.1'] - steps: - - uses: actions/checkout@v2 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby-version }} - bundler-cache: true - - name: Run tests - run: | - bundle exec rake test diff --git a/.packit.yaml b/.packit.yaml index 6e6b830da..4fb57f8f8 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -5,9 +5,8 @@ specfile_path: rubygem-foreman_maintain.spec # add or remove files that should be synced files_to_sync: - - rubygem-foreman_maintain.spec - - foreman_maintain.logrotate - - .packit.yaml + - rubygem-foreman_maintain.spec + - foreman_maintain.logrotate # name in upstream package repository or registry (e.g. in PyPI) upstream_package_name: foreman_maintain @@ -30,14 +29,23 @@ jobs: - job: copr_build trigger: pull_request targets: - rhel-8: - additional_modules: "foreman:el8" - additional_repos: - - https://yum.theforeman.org/releases/nightly/el8/x86_64/ rhel-9: additional_repos: - - https://yum.theforeman.org/releases/nightly/el9/x86_64/ + - https://yum.theforeman.org/releases/nightly/el$releasever/$basearch/ module_hotfixes: true + - job: tests + trigger: pull_request + targets: + rhel-9-x86_64: + distros: + - centos-stream-9 + tf_extra_params: + environments: + - artifacts: + - type: repository + id: https://yum.theforeman.org/releases/nightly/el9/x86_64/ + packages: + - foreman-release srpm_build_deps: - wget diff --git a/plans/help.fmf b/plans/help.fmf new file mode 100644 index 000000000..5c7125109 --- /dev/null +++ b/plans/help.fmf @@ -0,0 +1,11 @@ +summary: Run with --help +prepare: + - how: ansible + playbook: playbooks/stagingyum.yml + - how: install + package: + # https://github.com/theforeman/foreman-packaging/pull/10670 + - hostname + - foreman-maintain +execute: + - script: foreman-maintain --help diff --git a/playbooks/stagingyum.yml b/playbooks/stagingyum.yml new file mode 100644 index 000000000..9fc7a9e22 --- /dev/null +++ b/playbooks/stagingyum.yml @@ -0,0 +1,11 @@ +--- +- hosts: all + vars: + foreman_repositories_version: nightly + tasks: + - name: 'Foreman {{ foreman_repositories_version }} Staging repository' + yum_repository: + name: foreman-staging + description: "Foreman {{ foreman_repositories_version }} Staging Repository" + baseurl: "https://stagingyum.theforeman.org/foreman/{{ foreman_repositories_version }}/el$releasever_major/$basearch/" + gpgcheck: false