Skip to content

Commit

Permalink
add test for smart_proxy_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 16, 2024
1 parent 6689385 commit f77f064
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/smart_proxy_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,24 @@ on:
default: 'theforeman/smart-proxy'
required: false
type: string
plugin_repository:
description: Plugin repository to use
required: false
type: string
plugin_version:
description: Plugin version to use
required: false
type: string

jobs:
rubies:
name: Verify supported Ruby versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.plugin_repository }}
ref: ${{ inputs.plugin_version }}
- name: Verify supported Ruby versions
uses: theforeman/gha-matrix-ruby-verifier@v0
with:
Expand All @@ -33,3 +44,5 @@ jobs:
command: bundle exec rake test
environment_variables: |
SMART_PROXY_BRANCH=${{ inputs.foreman_proxy_version }}
gem_repository: ${{ inputs.plugin_repository }}
gem_version: ${{ inputs.plugin_version }}
19 changes: 19 additions & 0 deletions .github/workflows/smart_proxy_plugin_workflow_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Test smart_proxy_plugin.yml

on:
pull_request:
paths:
- '.github/workflows/smart_proxy_plugin.yml'
- '.github/workflows/smart_proxy_plugin_workflow_test.yml'

concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
test:
name: Ruby
uses: ./.github/workflows/smart_proxy_plugin.yml
with:
plugin_repository: theforeman/smart_proxy_pulp

0 comments on commit f77f064

Please sign in to comment.