diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-25 19:12:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-25 21:34:41 +0900 |
commit | 9850176984d8c6a4a0e6c0982b982dcd3ea7cd79 (patch) | |
tree | 8b43a4ca1d40d0c75ec4f017840e307561e4b879 /.github/workflows/ubuntu.yml | |
parent | d896746d692ee1f11ee22f1ee2ef0b8f79ecfe10 (diff) | |
download | ruby-9850176984d8c6a4a0e6c0982b982dcd3ea7cd79.tar.gz |
Split skipped tests step
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r-- | .github/workflows/ubuntu.yml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 04d4a0a724..de65ec47c5 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -92,18 +92,20 @@ jobs: if: ${{ matrix.test_task == 'check' }} - name: make ${{ matrix.test_task }} run: | - if [ ${{ matrix.test_task }} = 'check' ]; then - TESTS="${{ matrix.skipped_tests }}" - fi $SETARCH make -s ${{ matrix.test_task }} ${TESTS:+TESTS=`echo "$TESTS" | sed 's| |$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`} - if [ ${{ matrix.test_task }} = 'check' -a "${TESTS:+set}" ]; then - unset GNUMAKEFLAGS - $SETARCH make -s test-all TESTS=`echo "$TESTS" | sed 's| |$/ -n/|g;s|^|-n/|;s|$|$$/|'` - fi timeout-minutes: 40 env: RUBY_TESTOPTS: "-q --tty=no" + TESTS: ${{ matrix.test_task == 'check' && matrix.skipped_tests || '' }} TEST_BUNDLED_GEMS_ALLOW_FAILURES: "" + - name: make skipped tests + run: | + $SETARCH make -s test-all TESTS=`echo "$TESTS" | sed 's| |$/ -n/|g;s|^|-n/|;s|$|$$/|'` + env: + GNUMAKEFLAGS: "" + RUBY_TESTOPTS: "-v --tty=no" + TESTS: ${{ matrix.skipped_tests }} + if: ${{ matrix.test_task == 'check' && matrix.skipped_tests != '' }} - uses: k0kubun/action-slack@v2.0.0 with: payload: | |