Test with -O3 is flaky now. I disabled it same as before. #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: parse.y | |
on: | |
push: | |
paths-ignore: | |
- 'doc/**' | |
- '**/man/*' | |
- '**.md' | |
- '**.rdoc' | |
- '**/.document' | |
- '.*.yml' | |
pull_request: | |
paths-ignore: | |
- 'doc/**' | |
- '**/man/*' | |
- '**.md' | |
- '**.rdoc' | |
- '**/.document' | |
- '.*.yml' | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }} | |
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }} | |
permissions: | |
contents: read | |
jobs: | |
make: | |
strategy: | |
matrix: | |
include: | |
- test_task: test | |
run_opts: '--parser=parse.y' | |
testopts: '-v --tty=no' | |
timeout: 30 | |
- test_task: test-all | |
run_opts: '--parser=parse.y' | |
testopts: '-q --tty=no --excludes-dir="../src/test/.excludes-parsey"' | |
timeout: 40 | |
- test_task: test-spec | |
run_opts: '--parser=parse.y' | |
specopts: '-T --parser=parse.y' | |
timeout: 10 | |
- test_task: test-tool | |
run_opts: '--parser=parse.y' | |
testopts: '-v --tty=no' | |
timeout: 30 | |
- test_task: test-bundler-parallel | |
run_opts: '--parser=parse.y' | |
testopts: '-v --tty=no' | |
timeout: 50 | |
- test_task: test-bundled-gems | |
run_opts: '--parser=parse.y' | |
testopts: '-v --tty=no' | |
timeout: 30 | |
- test_task: test-syntax-suggest | |
run_opts: '--parser=parse.y' | |
testopts: '-v --tty=no' | |
timeout: 30 | |
fail-fast: false | |
env: | |
GITPULLOPTIONS: --no-tags origin ${{ github.ref }} | |
RUBY_DEBUG: ci | |
SETARCH: ${{ matrix.arch && format('setarch {0}', matrix.arch) }} | |
runs-on: ubuntu-22.04 | |
if: >- | |
${{!(false | |
|| contains(github.event.head_commit.message, '[DOC]') | |
|| contains(github.event.head_commit.message, 'Document') | |
|| contains(github.event.pull_request.title, '[DOC]') | |
|| contains(github.event.pull_request.title, 'Document') | |
|| contains(github.event.pull_request.labels.*.name, 'Document') | |
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]') | |
)}} | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
sparse-checkout-cone-mode: false | |
sparse-checkout: /.github | |
- uses: ./.github/actions/setup/ubuntu | |
- uses: ./.github/actions/setup/directories | |
with: | |
srcdir: src | |
builddir: build | |
makeup: true | |
clean: true | |
dummy-files: ${{ matrix.test_task == 'check' }} | |
- name: Run configure | |
run: ../src/configure -C --disable-install-doc cppflags=-DRUBY_DEBUG | |
- run: make | |
- name: make ${{ matrix.test_task }} | |
run: make -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS" SPECOPTS="$SPECOPTS" | |
timeout-minutes: ${{ matrix.timeout }} | |
env: | |
RUBY_TESTOPTS: ${{ matrix.testopts }} | |
RUN_OPTS: ${{ matrix.run_opts }} | |
SPECOPTS: ${{ matrix.specopts }} | |
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof' | |
- uses: ./.github/actions/slack | |
with: | |
label: ${{ matrix.run_opts }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot | |
if: ${{ failure() }} | |
defaults: | |
run: | |
working-directory: build |