Skip to content

Commit

Permalink
Don't run ruby tests on push to master (#574)
Browse files Browse the repository at this point in the history
* Don't run ruby tests on push to master

* Remove unnecessary if conditions
  • Loading branch information
stejskalleos authored Nov 24, 2022
1 parent ba2e303 commit 32e62c8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/ruby_tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Ruby Testing
on:
pull_request:
push:
branches:
- master
env:
BUNDLE_WITHOUT: journald:development:console:libvirt
RAILS_ENV: test
Expand Down Expand Up @@ -56,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 }}
Expand All @@ -66,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
Expand Down

0 comments on commit 32e62c8

Please sign in to comment.