File tree 2 files changed +18
-19
lines changed
2 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 1
- name : " setup ruby"
2
- description : " setup ruby"
3
-
1
+ name : setup ruby
2
+ description : setup ruby
4
3
runs :
5
- using : " composite"
4
+ using : composite
6
5
steps :
7
6
- name : Set up Ruby
8
7
uses : ruby/setup-ruby@v1
9
8
with :
10
9
bundler-cache : true
11
- working-directory : ./2024/ruby
Original file line number Diff line number Diff line change @@ -12,20 +12,21 @@ defaults:
12
12
working-directory : ./2021/ruby
13
13
14
14
jobs :
15
+ lint :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ - name : debug
20
+ run : pwd
21
+ - name : Setup Ruby
22
+ uses : ./.github/shared/setup
23
+ - name : Run rubocop
24
+ run : bundle exec rubocop
15
25
tests :
16
26
runs-on : ubuntu-latest
17
27
steps :
18
- - uses : actions/checkout@v3
19
- - name : Determine ruby version
20
- id : determine-ruby-version
21
- run : |
22
- VERSION=$(cat .ruby-version)
23
- echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
24
- - name : Set up Ruby
25
- uses : ruby/setup-ruby@v1
26
- with :
27
- ruby-version : ${{ steps.determine-ruby-version.outputs.VERSION }}
28
- bundler-cache : true
29
- working-directory : ./2021/ruby
30
- - name : Run tests
31
- run : bundle exec rspec
28
+ - uses : actions/checkout@v3
29
+ - name : Setup Ruby
30
+ uses : ./.github/shared/setup
31
+ - name : Run tests
32
+ run : bundle exec rspec
You can’t perform that action at this time.
0 commit comments