Skip to content

Commit

Permalink
WIP: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Dec 20, 2023
1 parent 7d16b0a commit da16931
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
foreman-repo: [theforeman/foreman]
foreman-core-branch: [3.3-stable, 3.4-stable, develop]
foreman-core-branch: [3.8-stable, 3.9-stable, develop]
ruby-version: [2.7]
node: [14]
steps:
Expand All @@ -38,30 +38,17 @@ jobs:
- uses: actions/checkout@v2
with:
path: foreman_acd
- name: Setup Bundler
- name: Add ACD to foreman
run: |
echo "gem 'foreman_acd', path: './foreman_acd'" > bundler.d/foreman_acd.local.rb
- name: Limit REX and tasks version for Foreman 3.3-stable
- name: Limit REX and tasks version for Foreman 3.8-stable
working-directory: foreman_acd
if: ${{ matrix.foreman-core-branch == '3.3-stable' }}
if: ${{ matrix.foreman-core-branch == '3.8-stable' }}
run: |
sed -i '23,24d' foreman_acd.gemspec
sed -i '23is.add_dependency "foreman-tasks", "~> 6.0"' foreman_acd.gemspec
sed -i '23is.add_dependency "foreman_remote_execution", "~> 7.2"' foreman_acd.gemspec
- name: Limit REX and tasks version for Foreman 3.4-stable
working-directory: foreman_acd
if: ${{ matrix.foreman-core-branch == '3.4-stable' }}
run: |
sed -i '23,24d' foreman_acd.gemspec
sed -i '23is.add_dependency "foreman-tasks", "~> 7.0"' foreman_acd.gemspec
sed -i '23is.add_dependency "foreman_remote_execution", "~> 8.0"' foreman_acd.gemspec
- name: Limit REX and tasks version for Foreman develop
working-directory: foreman_acd
if: ${{ matrix.foreman-core-branch == 'develop' }}
run: |
sed -i '23,24d' foreman_acd.gemspec
sed -i '23is.add_dependency "foreman-tasks", "~> 7.0"' foreman_acd.gemspec
sed -i '23is.add_dependency "foreman_remote_execution", "~> 9.0"' foreman_acd.gemspec
sed -i '/s\.add_dependency .foreman-tasks./s/,[^,]*$/, "~> 8.3"/' foreman_acd.gemspec
sed -i '/s\.add_dependency .foreman_remote_execution./s/,[^,]*$/, "~> 11.1"/' foreman_acd.gemspec
cat foreman_acd.gemspec
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -71,6 +58,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: bundle list
- name: Prepare test env
run: |
bundle exec rake db:create
Expand Down

0 comments on commit da16931

Please sign in to comment.