Fix JRuby builds / minimum ruby version #370
Workflow file for this run
This file contains hidden or 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: RSpec tests | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
ruby: | ||
name: ${{ matrix.ruby }} (timeout ${{ matrix.timeout }}) | ||
runs-on: ${{ maxtrix.os }} | ||
Check failure on line 13 in .github/workflows/test.yml
|
||
timeout-minutes: ${{ matrix.timeout }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- ruby: 2.7 | ||
timeout: 5 | ||
os: ubuntu-latest | ||
- ruby: '3.0' | ||
timeout: 5 | ||
os: ubuntu-latest | ||
- ruby: 3.1 | ||
timeout: 5 | ||
os: ubuntu-latest | ||
- ruby: 3.2 | ||
timeout: 5 | ||
os: ubuntu-latest | ||
- ruby: 3.3 | ||
timeout: 5 | ||
os: ubuntu-latest | ||
- ruby: ruby | ||
timeout: 5 | ||
os: ubuntu-latest | ||
- ruby: head | ||
timeout: 5 | ||
os: ubuntu-latest | ||
- ruby: truffleruby | ||
timeout: 50 | ||
os: ubuntu-latest | ||
- ruby: truffleruby-head | ||
timeout: 50 | ||
os: ubuntu-latest | ||
- ruby: jruby | ||
timeout: 5 | ||
os: ubuntu-22.04 | ||
- ruby: jruby-head | ||
timeout: 5 | ||
os: ubuntu-22.04 | ||
steps: | ||
- name: Installing libyaml-dev | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libyaml-dev | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
rubygems: 3.3.12 | ||
bundler-cache: true | ||
cache-version: 4 | ||
- name: Run tests | ||
run: bundle exec rake spec | ||
continue-on-error: ${{ matrix.ruby == 'truffleruby-head' || matrix.ruby == 'truffleruby' }} | ||
actionmailer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Installing libyaml-dev | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libyaml-dev | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3 | ||
bundler-cache: true | ||
cache-version: 4 | ||
- name: Setup mail with ActionMailer edge | ||
run: | | ||
git clone --depth=1 https://github.com/rails/rails.git -b main | ||
cd rails | ||
echo -e "\ngem 'mail', path: '../'" >> Gemfile | ||
bundle update --bundler --source mail | ||
- name: Run ActionMailer tests | ||
run: | | ||
cd rails/actionmailer | ||
bundle exec rake |