Skip to content

Commit 3e76731

Browse files
try composite action
1 parent 849cf70 commit 3e76731

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/2024-ruby.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ defaults:
1111
working-directory: ./2024/ruby
1212

1313
jobs:
14-
tests:
14+
lint:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up Ruby
19-
uses: ruby/setup-ruby@v1
20-
with:
21-
bundler-cache: true
22-
working-directory: ./2024/ruby
17+
- uses: "./.github/shared/setup"
2318
- name: RuboCop Linter Action
2419
uses: andrewmcodes/rubocop-linter-action@v3.3.0
20+
tests:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: "./.github/shared/setup"
2524
- name: Run tests
2625
run: bundle exec rspec
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "setup ruby"
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- uses: actions/checkout@v3
7+
- name: Set up Ruby
8+
uses: ruby/setup-ruby@v1
9+
with:
10+
bundler-cache: true
11+
working-directory: ./2024/ruby

0 commit comments

Comments
 (0)