Skip to content

Commit

Permalink
Rewrite gha workflow using reusable actions
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Jan 19, 2024
1 parent e40c7cf commit 68c9d56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 88 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ on:
push:
branches:
- master

concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true

jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Setup rubocop
run: |
gem install bundler
- name: Execute rubocop
run: |
bundle exec rubocop
name: Rubocop
uses: theforeman/actions/.github/workflows/rubocop.yml@v0
with:
command: bundle exec rubocop

test:
name: Ruby
needs: rubocop
uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0
with:
plugin: foreman_salt
74 changes: 0 additions & 74 deletions .github/workflows/unit_tests.yml

This file was deleted.

0 comments on commit 68c9d56

Please sign in to comment.