diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..a5beb68a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: Test +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +jobs: + test_ruby_versions: + runs-on: ubuntu-20.04 + + continue-on-error: ${{ matrix.allow_failures || false }} + + env: + BUNDLE_GEMFILE: "${{ matrix.gemfile }}" ### allows adding gemfile: to the matrix, bundler will automatically pick this up + + strategy: + fail-fast: false + matrix: + include: + - ruby: 2.3 + - ruby: 2.4 + - ruby: 2.5 + - ruby: 2.6 + - ruby: 2.7 + - ruby: "3.0" ### must be quoted otherwise will be treated as "3" which resolves to latest 3.x version + - ruby: 3.1 + - ruby: jruby-9.2 + - ruby: jruby-9.3 + + steps: + - uses: actions/checkout@v2 + + - name: Install ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ matrix.ruby }}" + bundler-cache: true + + - name: Run tests + run: | + bundle exec rake |
