Skip to content

Commit 0da8ef5

Browse files
committed
Split up workflow into 2 jobs
1 parent 0a11b5d commit 0da8ef5

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ on:
66
branches: [master]
77

88
jobs:
9+
danger:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: 3.4.4
16+
- name: Install dependencies
17+
run: bundle install --jobs 4 --retry 3
18+
- name: Run danger
19+
env:
20+
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: bundle exec danger
22+
923
test:
1024
runs-on: ubuntu-latest
1125
strategy:
1226
matrix:
13-
include:
14-
- ruby-version: 3.4.4
15-
command: bundle exec danger
16-
17-
- ruby-version: 3.4.4
18-
command: bundle exec rake
19-
- ruby-version: 3.3.8
20-
command: bundle exec rake
21-
- ruby-version: 3.2.8
22-
command: bundle exec rake
23-
- ruby-version: 3.1.7
24-
command: bundle exec rake
25-
27+
ruby-version: [3.4.4, 3.3.8, 3.2.8, 3.1.7]
2628
steps:
2729
- uses: actions/checkout@v4
2830
- uses: ruby/setup-ruby@v1
2931
with:
3032
ruby-version: ${{ matrix.ruby-version }}
3133
- name: Install dependencies
3234
run: bundle install --jobs 4 --retry 3
33-
- name: Run command
34-
env:
35-
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
run: ${{ matrix.command }}
35+
- name: Run tests
36+
run: bundle exec rake

0 commit comments

Comments
 (0)