Skip to content

Commit 0908dc5

Browse files
committed
Rewrite gha workflow using reusable actions
1 parent 345cca0 commit 0908dc5

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/rubocop.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,12 @@ on:
44
push:
55
branches:
66
- master
7+
8+
concurrency:
9+
group: ${{ github.ref_name }}
10+
cancel-in-progress: true
11+
712
jobs:
813
rubocop:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- name: Setup Ruby
13-
uses: ruby/setup-ruby@v1
14-
with:
15-
ruby-version: 2.7
16-
bundler-cache: true
17-
- name: Setup rubocop
18-
run: |
19-
gem install bundler
20-
- name: Execute rubocop
21-
run: |
22-
bundle exec rubocop
14+
name: Rubocop
15+
uses: theforeman/actions/.github/workflows/rubocop.yml@v0

0 commit comments

Comments
 (0)