Skip to content

Add CI workflow using GHA #4

Add CI workflow using GHA

Add CI workflow using GHA #4

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
rubocop:
name: Rubocop
uses: theforeman/actions/.github/workflows/rubocop.yml@v0
test:
name: Tests
needs: rubocop
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
puppet:
- "7"
- "8"
env:
PUPPET_VERSION: ${{ matrix.puppet }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Ruby environment
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: |
bundle exec rake test test:acceptance