mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Skip tests on Actions if [ci skip]
It seems that we cannot easily apply job-level [ci skip]. Therefore this commit skips only Tests step if it's [ci skip].
This commit is contained in:
parent
235d810c2e
commit
d10e28b875
3 changed files with 5 additions and 4 deletions
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
|
@ -47,14 +47,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TESTOPTS: "$JOBS -q --tty=no"
|
TESTOPTS: "$JOBS -q --tty=no"
|
||||||
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
||||||
if: matrix.test_task != 'test-bundled-gems'
|
if: matrix.test_task != 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
|
||||||
# test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.
|
# test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: make -s ${{ matrix.test_task }}
|
run: make -s ${{ matrix.test_task }}
|
||||||
env:
|
env:
|
||||||
TESTOPTS: "$JOBS -q --tty=no"
|
TESTOPTS: "$JOBS -q --tty=no"
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: matrix.test_task == 'test-bundled-gems'
|
if: matrix.test_task == 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
|
||||||
- name: Leaked Globals
|
- name: Leaked Globals
|
||||||
run: make -s leaked-globals
|
run: make -s leaked-globals
|
||||||
- uses: k0kubun/action-slack@v1.0.0
|
- uses: k0kubun/action-slack@v1.0.0
|
||||||
|
|
4
.github/workflows/ubuntu.yml
vendored
4
.github/workflows/ubuntu.yml
vendored
|
@ -50,14 +50,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TESTOPTS: "$JOBS -q --tty=no"
|
TESTOPTS: "$JOBS -q --tty=no"
|
||||||
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
||||||
if: matrix.test_task != 'test-bundled-gems'
|
if: matrix.test_task != 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
|
||||||
# test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.
|
# test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: make -s ${{ matrix.test_task }}
|
run: make -s ${{ matrix.test_task }}
|
||||||
env:
|
env:
|
||||||
TESTOPTS: "$JOBS -q --tty=no"
|
TESTOPTS: "$JOBS -q --tty=no"
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: matrix.test_task == 'test-bundled-gems'
|
if: matrix.test_task == 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
|
||||||
- name: Leaked Globals
|
- name: Leaked Globals
|
||||||
run: make -s leaked-globals
|
run: make -s leaked-globals
|
||||||
- uses: k0kubun/action-slack@v1.0.0
|
- uses: k0kubun/action-slack@v1.0.0
|
||||||
|
|
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
|
@ -53,6 +53,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
nmake ${{ matrix.test_task }}
|
nmake ${{ matrix.test_task }}
|
||||||
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
- uses: k0kubun/action-slack@v1.0.0
|
- uses: k0kubun/action-slack@v1.0.0
|
||||||
with:
|
with:
|
||||||
payload: |
|
payload: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue