diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-28 09:30:35 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-28 10:10:11 +0900 |
commit | 81c0d0e2fba7ba4e9047ac7842a263a5e23b8b8a (patch) | |
tree | b09ab59d442ccbcee18cea2fe546908959c28c61 /.github/workflows/ubuntu.yml | |
parent | aa6764e66da2a6a9d27d6910b2c19e97607c56e9 (diff) |
[CI] Fix conditional for `RUBYOPT`
Since GitHub has no real ternary [operator], the second expression
must be "truthy" value instead of an empty string which is evaluated
as `0`.
- Some bundler tests seem trying to install old Rack where
`Rack::Utils.byte_ranges` method has been deprecated once.
- Racc tests do not seem aware about warnings very well.
[operator]: https://docs.github.com/actions/learn-github-actions/expressions#operators
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r-- | .github/workflows/ubuntu.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 6f0ccc299b..0548e1b420 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -101,7 +101,7 @@ jobs: run: >- $SETARCH make -s ${{ matrix.test_task }} ${TESTS:+TESTS=`echo "$TESTS" | sed 's| |$$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`} - ${{ contains(matrix.test_task, 'bundle') && '' || 'RUBYOPT=-w' }} + ${{ !contains(matrix.test_task, 'bundle') && 'RUBYOPT=-w' || '' }} timeout-minutes: 40 env: RUBY_TESTOPTS: '-q --tty=no' |