diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-01 18:15:36 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-01 20:55:29 +0900 |
commit | 3cf001811950608908b5d092c673572c5357fbbd (patch) | |
tree | 26b8e4328391c58840b838ff978e2a505fba4c4d /.github | |
parent | 3124422bc8d74106abb9a80e99feda48a0d7fa4a (diff) | |
download | ruby-3cf001811950608908b5d092c673572c5357fbbd.tar.gz |
CI: Add conditions for `test_task` on MinGW
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/mingw.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 3902c34edb..a5421343fc 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -37,10 +37,10 @@ jobs: include: - msystem: "MINGW64" base_ruby: 2.6 - test_task: "check" # to make job names consistent + test_task: "check" - msystem: "UCRT64" base_ruby: head - test_task: "check" # to make job names consistent + test_task: "check" fail-fast: false if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} steps: @@ -126,21 +126,24 @@ jobs: timeout-minutes: 5 run: | make test + if: ${{matrix.test_task == 'check' || matrix.test_task == 'test'}} - name: test-all timeout-minutes: 45 run: | # Actions uses UTF8, causes test failures, similar to normal OS setup chcp.com 437 - make test-all + make ${{ StartsWith(matrix.test_task, 'test/') && matrix.test_task || 'test-all' }} env: RUBY_TESTOPTS: -j${{env.TEST_JOBS}} --retry --job-status=normal --show-skip --timeout-scale=1.5 BUNDLER_VERSION: + if: ${{matrix.test_task == 'check' || matrix.test_task == 'test-all' || StartsWith(matrix.test_task, 'test/')}} - name: test-spec timeout-minutes: 10 run: | - make test-spec + make ${{ StartsWith(matrix.test_task, 'spec/') && matrix.test_task || 'test-spec' }} + if: ${{matrix.test_task == 'check' || matrix.test_task == 'test-spec' || StartsWith(matrix.test_task, 'spec/')}} - uses: k0kubun/action-slack@v2.0.0 with: |