mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 13:04:22 +00:00
Use ${{}} for if statement
This commit is contained in:
parent
7f4e86804d
commit
8b466ea5fc
Notes:
git
2021-08-02 12:40:16 +09:00
2
.github/workflows/baseruby.yml
vendored
2
.github/workflows/baseruby.yml
vendored
@ -42,4 +42,4 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
6
.github/workflows/check_dependencies.yml
vendored
6
.github/workflows/check_dependencies.yml
vendored
@ -13,12 +13,12 @@ jobs:
|
||||
set -x
|
||||
sudo apt-get update -q || :
|
||||
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev bison autoconf ruby
|
||||
if: "contains(matrix.os, 'ubuntu')"
|
||||
if: ${{ contains(matrix.os, 'ubuntu') }}
|
||||
- name: Install libraries
|
||||
run: |
|
||||
brew upgrade
|
||||
brew install gmp libffi openssl@1.1 zlib autoconf automake libtool readline
|
||||
if: "contains(matrix.os, 'macos')"
|
||||
if: ${{ contains(matrix.os, 'macos') }}
|
||||
- name: git config
|
||||
run: |
|
||||
git config --global advice.detachedHead 0
|
||||
@ -42,4 +42,4 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
12
.github/workflows/compilers.yml
vendored
12
.github/workflows/compilers.yml
vendored
@ -189,15 +189,15 @@ jobs:
|
||||
- run: $make leaked-globals
|
||||
- run: $make test
|
||||
- run: $make install
|
||||
if: "matrix.entry.name == '-O3'"
|
||||
if: ${{ matrix.entry.name == '-O3' }}
|
||||
- run: /usr/local/bin/gem install --no-doc timezone tzinfo
|
||||
if: "matrix.entry.name == '-O3'"
|
||||
if: ${{ matrix.entry.name == '-O3' }}
|
||||
- run: $make test-tool
|
||||
if: "matrix.entry.name == '-O3'"
|
||||
if: ${{ matrix.entry.name == '-O3' }}
|
||||
- run: $make test-all TESTS='-- ruby -ext-'
|
||||
if: "matrix.entry.name == '-O3'"
|
||||
if: ${{ matrix.entry.name == '-O3' }}
|
||||
- run: $make test-spec
|
||||
if: "matrix.entry.name == '-O3'"
|
||||
if: ${{ matrix.entry.name == '-O3' }}
|
||||
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
with:
|
||||
@ -211,7 +211,7 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
6
.github/workflows/macos.yml
vendored
6
.github/workflows/macos.yml
vendored
@ -34,9 +34,9 @@ jobs:
|
||||
- run: make $JOBS incs
|
||||
- run: make $JOBS
|
||||
- run: make leaked-globals
|
||||
if: matrix.test_task == 'check'
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
if: matrix.test_task == 'check'
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make $JOBS -s ${{ matrix.test_task }}
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
@ -54,7 +54,7 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
2
.github/workflows/mingw.yml
vendored
2
.github/workflows/mingw.yml
vendored
@ -136,7 +136,7 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
2
.github/workflows/mjit.yml
vendored
2
.github/workflows/mjit.yml
vendored
@ -70,7 +70,7 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
2
.github/workflows/spec_guards.yml
vendored
2
.github/workflows/spec_guards.yml
vendored
@ -35,4 +35,4 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
8
.github/workflows/ubuntu.yml
vendored
8
.github/workflows/ubuntu.yml
vendored
@ -48,13 +48,13 @@ jobs:
|
||||
- run: make $JOBS incs
|
||||
- run: make $JOBS
|
||||
- run: make leaked-globals
|
||||
if: matrix.test_task == 'check'
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
if: matrix.test_task == 'check'
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- name: Create dummy files in build dir
|
||||
run: |
|
||||
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
|
||||
if: matrix.test_task == 'check'
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make $JOBS -s ${{ matrix.test_task }}
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
@ -72,7 +72,7 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@ -92,7 +92,7 @@ jobs:
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
if: failure() && github.event_name == 'push'
|
||||
if: ${{ failure() && github.event_name == 'push' }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user