Skip to content

Commit a43803c

Browse files
authored
Test all virtual environments, not just the latest, and added crontab (#60)
1 parent bf8b766 commit a43803c

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,31 @@ on:
88
- '*'
99
paths-ignore:
1010
- README.md
11+
schedule:
12+
- cron: '0 7 * * SUN'
1113
jobs:
1214
test:
1315
strategy:
1416
fail-fast: false
1517
matrix:
16-
os: [ ubuntu, macos, windows ]
18+
os: [ ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, windows-2016, windows-2019 ]
1719
# Use various version syntax here for testing
1820
ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, debug, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
1921
include:
20-
- { os: ubuntu, ruby: rubinius }
21-
- { os: windows, ruby: mingw }
22-
- { os: windows, ruby: mswin }
22+
- { os: ubuntu-18.04, ruby: rubinius }
23+
- { os: windows-2016, ruby: mingw }
24+
- { os: windows-2019, ruby: mingw }
25+
- { os: windows-2019, ruby: mswin }
2326
exclude:
24-
- { os: windows, ruby: debug }
25-
- { os: windows, ruby: truffleruby }
26-
- { os: windows, ruby: truffleruby-head }
27+
- { os: windows-2016, ruby: debug }
28+
- { os: windows-2016, ruby: truffleruby }
29+
- { os: windows-2016, ruby: truffleruby-head }
30+
- { os: windows-2019, ruby: debug }
31+
- { os: windows-2019, ruby: truffleruby }
32+
- { os: windows-2019, ruby: truffleruby-head }
2733

2834
name: ${{ matrix.os }} ${{ matrix.ruby }}
29-
runs-on: ${{ matrix.os }}-latest
35+
runs-on: ${{ matrix.os }}
3036
steps:
3137
- uses: actions/checkout@v2
3238

@@ -39,7 +45,7 @@ jobs:
3945
run: |
4046
ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
4147
- name: gcc and ridk version (mingw)
42-
if: matrix.os == 'windows'
48+
if: startsWith(matrix.os, 'windows')
4349
run: |
4450
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
4551
if ($plat.Contains('mingw')) {
@@ -65,10 +71,10 @@ jobs:
6571
- run: bundle exec rake --version
6672

6773
- name: which ruby, rake
68-
if: matrix.os != 'windows'
74+
if: "!startsWith(matrix.os, 'windows')"
6975
run: which -a ruby rake
7076
- name: where ruby, rake
71-
if: matrix.os == 'windows'
77+
if: startsWith(matrix.os, 'windows')
7278
run: |
7379
$ErrorActionPreference = 'Continue'
7480
$where = 'ruby', 'rake'

0 commit comments

Comments
 (0)