Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run ruby tests on push to master #574

Merged
merged 2 commits into from
Nov 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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