ruby-changes:57197
From: Takashi <ko1@a...>
Date: Tue, 20 Aug 2019 23:59:30 +0900 (JST)
Subject: [ruby-changes:57197] Takashi Kokubun: d10e28b875 (master): Skip tests on Actions if [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=d10e28b875 From d10e28b875a58e2c4422b8df8f4bbcc2fb0362d0 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Tue, 20 Aug 2019 23:58:36 +0900 Subject: 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]. diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 1dcd992..13d0c7d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -47,14 +47,14 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L47 env: TESTOPTS: "$JOBS -q --tty=no" 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. - name: Tests run: make -s ${{ matrix.test_task }} env: TESTOPTS: "$JOBS -q --tty=no" 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 run: make -s leaked-globals - uses: k0kubun/action-slack@v... diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 210dcce..13b7e04 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -50,14 +50,14 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L50 env: TESTOPTS: "$JOBS -q --tty=no" 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. - name: Tests run: make -s ${{ matrix.test_task }} env: TESTOPTS: "$JOBS -q --tty=no" 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 run: make -s leaked-globals - uses: k0kubun/action-slack@v... diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 20e985d..256d53f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -53,6 +53,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L53 run: | call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat" nmake ${{ matrix.test_task }} + if: "!contains(github.event.head_commit.message, '[ci skip]')" - uses: k0kubun/action-slack@v... with: payload: | -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/