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 3789831
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 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,16 @@ 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
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
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -71,14 +57,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Prepare test env
run: |
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:test:prepare
- name: Prepare webpack
run: |
npm install
bundle exec rake webpack:compile
- name: Run plugin tests
run: |
Expand Down

0 comments on commit 3789831

Please sign in to comment.