Skip to content

Parallelize GitHub Action jobs in CI (#5458) #540

Parallelize GitHub Action jobs in CI (#5458)

Parallelize GitHub Action jobs in CI (#5458) #540

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-13
test:
# For some reason, after running these tests,
# `source ~/.rvm/scripts/rvm` fails on macOS, so run them last.
# See https://github.com/rvm/rvm/pull/5387#issuecomment-2009391015
# These tests also change the default ruby, which is another reason to run them last.
- "tests/fast/*"
- "tests/long/truffleruby_comment_test.sh"
include:
- os: ubuntu-latest
# works on local, but fails in CI, needs to be investigated
test: "tests/long/named_ruby_and_gemsets_comment_test.sh"
- os: ubuntu-latest
# https://github.com/rvm/rvm/issues/4937
test: "tests/long/ruby_prepare_mount_comment_test.sh"
runs-on: ${{ matrix.os }}
env:
TERM: ansi
RVM_SKIP_BREW_UPDATE: true
steps:
- uses: actions/checkout@v4
- run: ./install
- run: source ~/.rvm/scripts/rvm && rvm use 2.7.7 --install --default
- run: source ~/.rvm/scripts/rvm && gem install tf -v '>=0.4.1'
- run: source ~/.rvm/scripts/rvm && tf --text ${{ matrix.test }}