Skip to content

Commit 9ffb11a

Browse files
wip
1 parent 6eaa712 commit 9ffb11a

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

.github/shared/setup/action.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
name: "setup ruby"
2-
description: "setup ruby"
3-
1+
name: setup ruby
2+
description: setup ruby
43
runs:
5-
using: "composite"
4+
using: composite
65
steps:
76
- name: Set up Ruby
87
uses: ruby/setup-ruby@v1
98
with:
109
bundler-cache: true
11-
working-directory: ./2024/ruby

.github/workflows/2021-ruby.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ defaults:
1212
working-directory: ./2021/ruby
1313

1414
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
1525
tests:
1626
runs-on: ubuntu-latest
1727
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

0 commit comments

Comments
 (0)