зеркало из https://github.com/github/ruby.git
Simplify test tasks
Removed `if` conditions separating `test-bundled-gems`, and pass `TESTOPTS` and `TEST_BUNDLED_GEMS_ALLOW_FAILURES` via `env`.
This commit is contained in:
Родитель
929a4aa722
Коммит
c0c9a00f83
|
@ -55,16 +55,12 @@ jobs:
|
||||||
- name: Make
|
- name: Make
|
||||||
run: make -C build $JOBS
|
run: make -C build $JOBS
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: make -C build -s ${{ matrix.test_task }} TESTOPTS="$JOBS -q --tty=no"
|
run: make -C build -s ${{ matrix.test_task }}
|
||||||
env:
|
env:
|
||||||
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
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"
|
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
|
- name: Leaked Globals
|
||||||
run: make -C build -s leaked-globals
|
run: make -C build -s leaked-globals
|
||||||
- uses: k0kubun/action-slack@v2.0.0
|
- uses: k0kubun/action-slack@v2.0.0
|
||||||
|
|
|
@ -79,16 +79,12 @@ jobs:
|
||||||
- name: Make
|
- name: Make
|
||||||
run: make -C build $JOBS
|
run: make -C build $JOBS
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: make -C build -s ${{ matrix.test_task }} TESTOPTS="$JOBS -q --tty=no"
|
run: make -C build -s ${{ matrix.test_task }}
|
||||||
env:
|
env:
|
||||||
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
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"
|
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
|
- name: Leaked Globals
|
||||||
run: make -C build -s leaked-globals
|
run: make -C build -s leaked-globals
|
||||||
- name: Debug GitHub context
|
- name: Debug GitHub context
|
||||||
|
|
Загрузка…
Ссылка в новой задаче