Skip to content

Commit

Permalink
Add GA to run tests on Ruby 3+
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Jul 19, 2023
1 parent 1b52c6f commit 117f033
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run tests GA

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: hammer-cli-foreman
strategy:
fail-fast: false
matrix:
ruby:
- 2.7
- 3.0
- 3.1
steps:
- name: Get hammer-cli
uses: actions/checkout@v2
with:
repository: theforeman/hammer-cli
ref: master
path: hammer-cli
- name: Get hammer-cli-foreman
uses: actions/checkout@v2
with:
path: hammer-cli-foreman
- name: Configure local gem dependencies
run: |
echo "gemspec path: '../hammer-cli', name: 'hammer_cli'" > Gemfile.local.rb
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: hammer-cli-foreman
- name: Run tests
run: |
bundle exec rake test

0 comments on commit 117f033

Please sign in to comment.