Merge pull request #273 from bcrypt-ruby/ci-updates #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Suite | |
# Run against all commits and pull requests. | |
on: [ push, pull_request ] | |
jobs: | |
test_matrix: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu | |
- macos | |
- windows | |
ruby: | |
- 2.1 | |
- 2.2 | |
- 2.3 | |
- 2.4 | |
- 2.5 | |
- 2.6 | |
- 2.7 | |
- '3.0' | |
- 3.1 | |
- 3.2 | |
- head | |
- jruby | |
- jruby-head | |
- truffleruby | |
- truffleruby-head | |
- mingw | |
exclude: | |
- { os: ubuntu, ruby: 2.1 } | |
- { os: ubuntu, ruby: 2.2 } | |
- { os: ubuntu, ruby: mingw } | |
- { os: macos, ruby: mingw } | |
- { os: windows, ruby: truffleruby } | |
- { os: windows, ruby: truffleruby-head } | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
env: | |
JAVA_OPTS: -Djdk.io.File.enableADS=true | |
- name: Run tests | |
run: bundle exec rake default | |
env: | |
JAVA_OPTS: -Djdk.io.File.enableADS=true | |
test_matrix_old_rubies: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- 2.1 | |
- 2.2 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake default | |
finish: | |
runs-on: ubuntu-latest | |
needs: [ test_matrix ] | |
steps: | |
- name: Wait for status checks | |
run: echo "All Green!" |