[前][次][番号順一覧][スレッド一覧]

ruby-changes:72385

From: Nobuyoshi <ko1@a...>
Date: Fri, 1 Jul 2022 20:55:46 +0900 (JST)
Subject: [ruby-changes:72385] 3cf0018119 (master): CI: Add conditions for `test_task` on MinGW

https://git.ruby-lang.org/ruby.git/commit/?id=3cf0018119

From 3cf001811950608908b5d092c673572c5357fbbd Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
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(-)

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: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L37
         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: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L126
         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@v...
         with:
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]