Skip to content

Commit

Permalink
Parallelize GitHub Action jobs in CI (#5458)
Browse files Browse the repository at this point in the history
  • Loading branch information
torrocus committed May 6, 2024
1 parent 0ec4d9d commit f116268
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ jobs:
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
Expand All @@ -20,20 +34,4 @@ jobs:
- 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'

- name: named_ruby_and_gemsets_comment_test
if: ${{ !contains(matrix.os, 'macos') }} # works on local, but fails in CI, needs to be investigated
run: source ~/.rvm/scripts/rvm && tf --text tests/long/named_ruby_and_gemsets_comment_test.sh

- name: ruby_prepare_mount_comment_test
if: ${{ !contains(matrix.os, 'macos') }} # https://github.com/rvm/rvm/issues/4937
run: source ~/.rvm/scripts/rvm && tf --text tests/long/ruby_prepare_mount_comment_test.sh

- name: truffleruby_comment_test
run: source ~/.rvm/scripts/rvm && tf --text tests/long/truffleruby_comment_test.sh

# 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.
- name: tests/fast/*
run: source ~/.rvm/scripts/rvm && tf --text tests/fast/*
- run: source ~/.rvm/scripts/rvm && tf --text ${{ matrix.test }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@

* Migrate from rvm_io.global.ssl.fastly.net to rvm-io.global.ssl.fastly.net to fix domain fronting report from Fastly [\#5438](https://github.com/rvm/rvm/pull/5438)
* Upgrade github actions and truffleruby version in CI [\#5456](https://github.com/rvm/rvm/pull/5456)
* Parallelize GitHub Action jobs in CI [\#5458](https://github.com/rvm/rvm/pull/5458)

## [1.29.12](https://github.com/rvm/rvm/releases/tag/1.29.12)
15 January 2021 - [Full Changelog](https://github.com/rvm/rvm/compare/1.29.11...1.29.12)
Expand Down

0 comments on commit f116268

Please sign in to comment.