diff options
Diffstat (limited to '.github/workflows/prism.yml')
-rw-r--r-- | .github/workflows/prism.yml | 71 |
1 files changed, 37 insertions, 34 deletions
diff --git a/.github/workflows/prism.yml b/.github/workflows/prism.yml index 95a36f1634..e280a07b0b 100644 --- a/.github/workflows/prism.yml +++ b/.github/workflows/prism.yml @@ -31,10 +31,35 @@ jobs: make: strategy: matrix: - # main variables included in the job name - test_task: [check] - run_opts: ['--parser=prism'] - arch: [''] + include: + - test_task: test + run_opts: '--parser=prism' + testopts: '-v --tty=no' + timeout: 30 + - test_task: test-all + run_opts: '--parser=prism' + testopts: '-q --tty=no --excludes-dir="../src/test/.excludes-prism" --exclude="error_highlight/test_error_highlight.rb"' + timeout: 40 + - test_task: test-spec + run_opts: '--parser=prism' + specopts: '-T --parser=prism' + timeout: 10 + - test_task: test-tool + run_opts: '--parser=prism' + testopts: '-v --tty=no' + timeout: 30 + - test_task: test-bundler-parallel + run_opts: '--parser=prism' + testopts: '-v --tty=no' + timeout: 30 + - test_task: test-bundled-gems + run_opts: '--parser=prism' + testopts: '-v --tty=no' + timeout: 30 + - test_task: test-syntax-suggest + run_opts: '--parser=prism' + testopts: '-v --tty=no' + timeout: 30 fail-fast: false env: @@ -55,7 +80,7 @@ jobs: )}} steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: sparse-checkout-cone-mode: false sparse-checkout: /.github @@ -69,39 +94,17 @@ jobs: makeup: true - name: Run configure - env: - arch: ${{ matrix.arch }} - run: >- - $SETARCH ../src/configure -C --disable-install-doc cppflags=-DRUBY_DEBUG - ${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE} - - - run: $SETARCH make + run: ../src/configure -C --disable-install-doc cppflags=-DRUBY_DEBUG - - name: make test - run: | - $SETARCH make -s test RUN_OPTS="$RUN_OPTS" - timeout-minutes: 30 - env: - GNUMAKEFLAGS: '' - RUBY_TESTOPTS: '-v --tty=no' - RUN_OPTS: ${{ matrix.run_opts }} + - run: make - - name: make test-all - run: | - $SETARCH make -s test-all RUN_OPTS="$RUN_OPTS" - timeout-minutes: 40 + - name: make ${{ matrix.test_task }} + run: make -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS" SPECOPTS="$SPECOPTS" + timeout-minutes: ${{ matrix.timeout }} env: - GNUMAKEFLAGS: '' - RUBY_TESTOPTS: '-q --tty=no --excludes-dir="../src/test/.excludes-prism" --exclude="test_ast.rb" --exclude="error_highlight/test_error_highlight.rb" --exclude="prism/encoding_test.rb" --exclude="prism/locals_test.rb" --exclude="prism/newline_test.rb"' + RUBY_TESTOPTS: ${{ matrix.testopts }} RUN_OPTS: ${{ matrix.run_opts }} - - - name: make test-prism-spec - run: | - $SETARCH make -s test-prism-spec SPECOPTS="$SPECOPTS" - timeout-minutes: 10 - env: - GNUMAKEFLAGS: '' - SPECOPTS: "-T -W:no-experimental -T --parser=prism" + SPECOPTS: ${{ matrix.specopts }} - uses: ./.github/actions/slack with: |