forked from theforeman/hammer-cli-foreman
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.24 KB
/
unit_tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 apipie-bindings
uses: actions/checkout@v2
with:
repository: Apipie/apipie-bindings
ref: master
path: apipie-bindings
- 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: '../apipie-bindings', name: 'apipie-bindings'" > Gemfile.local.rb
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