Skip to content

Commit 502018e

Browse files
authored
Merge pull request #517 from olleolleolle/patch-3
CI: Try to run bundle install just once
2 parents 9e6d117 + b883aca commit 502018e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,25 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20-
- name: Set up Ruby
21-
uses: ruby/setup-ruby@v1
22-
with:
23-
ruby-version: ${{ matrix.entry.ruby }}
24-
bundler-cache: true
2520
- name: Set Concurrency
2621
run: |
2722
if [[ ! -z "${{ matrix.entry.concurrency }}" ]]; then
2823
echo "Setting concurrency to ${{ matrix.entry.concurrency }}."
2924
echo "CONCURRENCY=${{ matrix.entry.concurrency }}" >> $GITHUB_ENV
3025
fi
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{ matrix.entry.ruby }}
30+
bundler-cache: true # 'bundle install' and cache gems
3131
- name: Run Tests
3232
continue-on-error: ${{ matrix.entry.ignore || false }}
3333
env:
3434
RACK_ENV: test
35-
run: |
36-
bundle install
37-
bundle exec rake
35+
run: bundle exec rake
3836
- name: Coveralls
3937
uses: coverallsapp/github-action@master
4038
with:
4139
github-token: ${{ secrets.GITHUB_TOKEN }}
4240
- name: Coveralls Finished
43-
uses: coverallsapp/github-action@master
41+
uses: coverallsapp/github-action@master

0 commit comments

Comments
 (0)