diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-01-10 13:47:46 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-10 15:36:19 -0500 |
| commit | 5906f6a50ed4c6d3e23595ecf5feea615f0965d5 (patch) | |
| tree | 50628732e931a9aa11404cc7dd4fd0abbfb9d5c7 /.github/workflows | |
| parent | 8333845b0b95fa7195ed15688a5ef50ff66c7e1f (diff) | |
Add a GitHub workflow for prism btests
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/prism.yml | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/.github/workflows/prism.yml b/.github/workflows/prism.yml new file mode 100644 index 0000000000..4bfaf92544 --- /dev/null +++ b/.github/workflows/prism.yml @@ -0,0 +1,129 @@ +name: Prism +on: + push: + paths-ignore: + - 'doc/**' + - '**.md' + - '**.rdoc' + - '**/.document' + - '**.[1-8]' + - '**.ronn' + - '.*.yml' + pull_request: + paths-ignore: + - 'doc/**' + - '**.md' + - '**.rdoc' + - '**/.document' + - '**.[1-8]' + - '**.ronn' + - '.*.yml' + merge_group: + paths-ignore: + - 'doc/**' + - '**.md' + - '**.rdoc' + - '**/.document' + - '**.[1-8]' + - '**.ronn' + - '.*.yml' + +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: + # main variables included in the job name + test_task: [check] + run_opts: ['--parser=prism'] + arch: [''] + 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.pull_request.title, '[DOC]') + || contains(github.event.pull_request.labels.*.name, 'Documentation') + || (github.event_name == 'push' && github.actor == 'dependabot[bot]') + )}} + + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + 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 + + - 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 + + - name: make btest + run: | + make -s btest RUN_OPTS="$RUN_OPTS" BTESTS="$(cat ../src/tool/prism_btests | grep -v '^#' | tr '\n' ' ')" + timeout-minutes: 30 + env: + GNUMAKEFLAGS: '' + RUBY_TESTOPTS: '-v --tty=no' + RUN_OPTS: ${{ matrix.run_opts }} + + # - 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 }} + + # - name: make test-all + # run: | + # $SETARCH make -s test-all RUN_OPTS="$RUN_OPTS" + # timeout-minutes: 40 + # env: + # GNUMAKEFLAGS: '' + # RUBY_TESTOPTS: '-q --tty=no' + # RUN_OPTS: ${{ matrix.run_opts }} + + # - name: make test-spec + # run: | + # $SETARCH make -s test-spec RUN_OPTS="$RUN_OPTS" + # timeout-minutes: 10 + # env: + # GNUMAKEFLAGS: '' + # RUN_OPTS: ${{ matrix.run_opts }} + + - 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 |
