From 975c327305a80ca466fcfaf7545093681cc6a291 Mon Sep 17 00:00:00 2001 From: Archana Kumari Date: Tue, 19 Mar 2024 21:01:13 +0000 Subject: [PATCH] Add GHA CI workflow --- .github/workflows/ci_test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci_test.yml diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml new file mode 100644 index 0000000..41bc684 --- /dev/null +++ b/.github/workflows/ci_test.yml @@ -0,0 +1,25 @@ +name: CI + +on: + pull_request: + push: + branches: + - master + +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + rubocop: + name: Rubocop + uses: theforeman/actions/.github/workflows/rubocop.yml@v0 + with: + command: bundle exec rubocop --parallel --format github + + test: + name: Ruby + needs: rubocop + uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0 + with: + plugin: foreman_plugin_templates