From 50bfaa54bbb284fa34caba5cf84f9a6257d15bdc Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Tue, 8 Nov 2022 13:42:59 +0100 Subject: [PATCH 1/2] Don't run ruby tests on push to master --- .github/workflows/ruby_tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ruby_tests.yml b/.github/workflows/ruby_tests.yml index b2369101b..158dd3f54 100644 --- a/.github/workflows/ruby_tests.yml +++ b/.github/workflows/ruby_tests.yml @@ -1,9 +1,6 @@ name: Ruby Testing on: pull_request: - push: - branches: - - master env: BUNDLE_WITHOUT: journald:development:console:libvirt RAILS_ENV: test From cf77c4979eea8ebff396991f527183210216c3f8 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Tue, 8 Nov 2022 14:57:54 +0100 Subject: [PATCH 2/2] Remove unnecessary if conditions --- .github/workflows/ruby_tests.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ruby_tests.yml b/.github/workflows/ruby_tests.yml index 158dd3f54..08c0c24d9 100644 --- a/.github/workflows/ruby_tests.yml +++ b/.github/workflows/ruby_tests.yml @@ -53,7 +53,6 @@ jobs: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Setup Node - if: github.event_name != 'push' uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} @@ -63,16 +62,13 @@ jobs: run: npm install --omit=dev working-directory: ${{ github.workspace }}/foreman_ansible - name: Prepare test env - if: github.event_name != 'push' run: | bundle exec rake db:create bundle exec rake db:migrate bundle exec rake db:test:prepare - name: Prepare webpack - if: github.event_name != 'push' run: bundle exec rake webpack:compile - name: Run plugin tests - if: github.event_name != 'push' run: | bundle exec rake test:foreman_ansible -v --trace bundle exec rake test TEST="test/unit/foreman/access_permissions_test.rb" -v --trace