Test all virtual environments, not just the latest, and added crontab (#60)

This commit is contained in:
Johnny Willemsen
2020-06-11 13:15:53 +02:00
committed by GitHub
parent bf8b766096
commit a43803ce44
+17 -11
View File
@@ -8,25 +8,31 @@ on:
- '*' - '*'
paths-ignore: paths-ignore:
- README.md - README.md
schedule:
- cron: '0 7 * * SUN'
jobs: jobs:
test: test:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ ubuntu, macos, windows ] os: [ ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, windows-2016, windows-2019 ]
# Use various version syntax here for testing # Use various version syntax here for testing
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 ] 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 ]
include: include:
- { os: ubuntu, ruby: rubinius } - { os: ubuntu-18.04, ruby: rubinius }
- { os: windows, ruby: mingw } - { os: windows-2016, ruby: mingw }
- { os: windows, ruby: mswin } - { os: windows-2019, ruby: mingw }
- { os: windows-2019, ruby: mswin }
exclude: exclude:
- { os: windows, ruby: debug } - { os: windows-2016, ruby: debug }
- { os: windows, ruby: truffleruby } - { os: windows-2016, ruby: truffleruby }
- { os: windows, ruby: truffleruby-head } - { os: windows-2016, ruby: truffleruby-head }
- { os: windows-2019, ruby: debug }
- { os: windows-2019, ruby: truffleruby }
- { os: windows-2019, ruby: truffleruby-head }
name: ${{ matrix.os }} ${{ matrix.ruby }} name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}-latest runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -39,7 +45,7 @@ jobs:
run: | run: |
ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first" ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
- name: gcc and ridk version (mingw) - name: gcc and ridk version (mingw)
if: matrix.os == 'windows' if: startsWith(matrix.os, 'windows')
run: | run: |
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ') $abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
if ($plat.Contains('mingw')) { if ($plat.Contains('mingw')) {
@@ -65,10 +71,10 @@ jobs:
- run: bundle exec rake --version - run: bundle exec rake --version
- name: which ruby, rake - name: which ruby, rake
if: matrix.os != 'windows' if: "!startsWith(matrix.os, 'windows')"
run: which -a ruby rake run: which -a ruby rake
- name: where ruby, rake - name: where ruby, rake
if: matrix.os == 'windows' if: startsWith(matrix.os, 'windows')
run: | run: |
$ErrorActionPreference = 'Continue' $ErrorActionPreference = 'Continue'
$where = 'ruby', 'rake' $where = 'ruby', 'rake'