From 3cf001811950608908b5d092c673572c5357fbbd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 1 Jul 2022 18:15:36 +0900 Subject: CI: Add conditions for `test_task` on MinGW --- .github/workflows/mingw.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.github') 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: -- cgit v1.2.3