-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (34 loc) · 1.04 KB
/
windows-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby: ["2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: |
gem update --system 3.2.3
gem install bundler -v 2.3.27
bundle add concurrent-ruby --version 1.3.4
if: matrix.ruby == '2.5' || matrix.ruby == '2.6'
- run: gem update --system
if: matrix.ruby != '2.5' && matrix.ruby != '2.6' && matrix.ruby != '2.7' && matrix.ruby != '3.0'
- run: bundle exec rake
- run: bundle exec rake
env:
RUBYOPT: --enable-frozen-string-literal
if: matrix.ruby != '2.5'