Fix detection of Homebrew's write permissions when using Workbrew #637
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- 3.1.6 | |
- 3.2.4 | |
- 3.3.3 | |
os: | |
- ubuntu-latest | |
- macos-13 | |
- macos-14 | |
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 | |
ruby: 3.3.3 | |
# works on local, but fails in CI, needs to be investigated | |
test: "tests/long/named_ruby_and_gemsets_comment_test.sh" | |
- os: ubuntu-latest | |
ruby: 3.3.3 | |
# 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 ${{ matrix.ruby }} --install --default | |
- run: source ~/.rvm/scripts/rvm && gem install tf -v '>=0.4.1' | |
- run: source ~/.rvm/scripts/rvm && tf --text ${{ matrix.test }} |