Skip to content

Commit

Permalink
Use foreman GH action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 committed Jan 22, 2024
1 parent 9a6ae05 commit 0c7c07b
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
name: Run unit tests
name: CI

on:
- push
- pull_request
on: pull_request

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7"]
concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v2
- name: Add hammer-cli-foreman to local gem file
run: echo "gem 'hammer_cli_foreman', :git => 'https://github.com/theforeman/hammer-cli-foreman.git'" > Gemfile.local
- name: Add hammer-cli to local gem file
run: echo "gem 'hammer_cli', :git => 'https://github.com/theforeman/hammer-cli.git'" >> Gemfile.local
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
jobs:
rubocop:
name: Rubocop
uses: theforeman/actions/.github/workflows/rubocop.yml@v0

0 comments on commit 0c7c07b

Please sign in to comment.