Removed `if` conditions separating `test-bundled-gems`, and pass
`TESTOPTS` and `TEST_BUNDLED_GEMS_ALLOW_FAILURES` via `env`.
This commit is contained in:
Nobuyoshi Nakada 2019-11-05 00:48:22 +09:00
Родитель 929a4aa722
Коммит c0c9a00f83
2 изменённых файлов: 6 добавлений и 14 удалений

10
.github/workflows/macos.yml поставляемый
Просмотреть файл

@ -55,16 +55,12 @@ jobs:
- name: Make
run: make -C build $JOBS
- name: Tests
run: make -C build -s ${{ matrix.test_task }} TESTOPTS="$JOBS -q --tty=no"
run: make -C build -s ${{ matrix.test_task }}
env:
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
if: matrix.test_task != 'test-bundled-gems'
- name: Tests (test-bundled-gems)
# Remove minitest from TEST_BUNDLED_GEMS_ALLOW_FAILURES if https://github.com/seattlerb/minitest/pull/798 is resolved
run: make -C build -s ${{ matrix.test_task }} TEST_BUNDLED_GEMS_ALLOW_FAILURES=minitest
env:
RUBY_TESTOPTS: "-q --tty=no"
if: matrix.test_task == 'test-bundled-gems'
# Remove minitest from TEST_BUNDLED_GEMS_ALLOW_FAILURES if https://github.com/seattlerb/minitest/pull/798 is resolved
TEST_BUNDLED_GEMS_ALLOW_FAILURES: "minitest"
- name: Leaked Globals
run: make -C build -s leaked-globals
- uses: k0kubun/action-slack@v2.0.0

10
.github/workflows/ubuntu.yml поставляемый
Просмотреть файл

@ -79,16 +79,12 @@ jobs:
- name: Make
run: make -C build $JOBS
- name: Tests
run: make -C build -s ${{ matrix.test_task }} TESTOPTS="$JOBS -q --tty=no"
run: make -C build -s ${{ matrix.test_task }}
env:
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
if: matrix.test_task != 'test-bundled-gems'
- name: Tests (test-bundled-gems)
# Remove minitest from TEST_BUNDLED_GEMS_ALLOW_FAILURES if https://github.com/seattlerb/minitest/pull/798 is resolved
run: make -C build -s ${{ matrix.test_task }} TEST_BUNDLED_GEMS_ALLOW_FAILURES=minitest
env:
RUBY_TESTOPTS: "-q --tty=no"
if: matrix.test_task == 'test-bundled-gems'
# Remove minitest from TEST_BUNDLED_GEMS_ALLOW_FAILURES if https://github.com/seattlerb/minitest/pull/798 is resolved
TEST_BUNDLED_GEMS_ALLOW_FAILURES: "minitest"
- name: Leaked Globals
run: make -C build -s leaked-globals
- name: Debug GitHub context