Skip to content

Commit 818aa9f

Browse files
authored
Merge pull request #758 from MSP-Greg/00-ci-windows
[CI] test.yml - use `bundle exec`, use setup-ruby bundler-cache, fixes Windows issue
2 parents b73df97 + e774b23 commit 818aa9f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
os: [ ubuntu-22.04, ubuntu-20.04, macos-latest, windows-latest ]
2121
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
2222
exclude:
23-
# uses non-standard MSYS2 OpenSSL 3 package
24-
- { os: windows-latest, ruby: head }
2523
- { os: windows-latest, ruby: truffleruby }
2624
- { os: windows-latest, ruby: truffleruby-head }
2725
- { os: macos-latest, ruby: truffleruby }
@@ -38,9 +36,7 @@ jobs:
3836
uses: ruby/setup-ruby@v1
3937
with:
4038
ruby-version: ${{ matrix.ruby }}
41-
42-
- name: depends
43-
run: bundle install
39+
bundler-cache: true # `bundle install` and cache
4440

4541
# Enable the verbose option in mkmf.rb to print the compiling commands.
4642
- name: enable mkmf verbose
@@ -52,10 +48,10 @@ jobs:
5248
if: ${{ !matrix.skip-warnings }}
5349

5450
- name: compile
55-
run: rake compile
51+
run: bundle exec rake compile
5652

5753
- name: test
58-
run: rake test TESTOPTS="-v --no-show-detail-immediately"
54+
run: bundle exec rake test TESTOPTS="-v --no-show-detail-immediately"
5955
timeout-minutes: 5
6056

6157
test-openssls:

0 commit comments

Comments
 (0)