2020-10-24 09:51:18 -04:00
|
|
|
name: Rubyspec Version Guards Check
|
2020-10-21 01:06:49 -04:00
|
|
|
|
2021-10-28 11:02:07 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rdoc'
|
2022-08-22 05:08:05 -04:00
|
|
|
- '**/.document'
|
2022-10-18 04:05:56 -04:00
|
|
|
- '**.[1-8]'
|
|
|
|
- '**.ronn'
|
2021-10-28 11:02:07 -04:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rdoc'
|
2022-08-22 05:08:05 -04:00
|
|
|
- '**/.document'
|
2022-10-18 04:05:56 -04:00
|
|
|
- '**.[1-8]'
|
|
|
|
- '**.ronn'
|
2020-10-21 01:06:49 -04:00
|
|
|
|
2021-11-18 08:21:05 -05:00
|
|
|
concurrency:
|
2021-11-21 05:17:27 -05:00
|
|
|
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
|
|
|
|
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
|
2021-11-18 08:21:05 -05:00
|
|
|
|
2020-10-21 01:06:49 -04:00
|
|
|
jobs:
|
|
|
|
rubyspec:
|
|
|
|
name: Rubyspec
|
|
|
|
runs-on: ubuntu-20.04
|
2022-06-18 22:05:31 -04:00
|
|
|
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
2020-10-21 01:06:49 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-10-24 09:51:18 -04:00
|
|
|
# Specs from ruby/spec should still run on all supported Ruby versions.
|
|
|
|
# This also ensures the needed ruby_version_is guards are there, see spec/README.md.
|
2020-10-21 01:06:49 -04:00
|
|
|
ruby:
|
|
|
|
- ruby-2.7
|
2022-01-15 04:11:20 -05:00
|
|
|
- ruby-3.1
|
2020-10-21 01:06:49 -04:00
|
|
|
|
|
|
|
steps:
|
2022-03-24 07:38:59 -04:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-21 01:06:49 -04:00
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: ${{ matrix.ruby }}
|
2020-10-24 09:51:18 -04:00
|
|
|
bundler: none
|
2020-12-26 02:37:39 -05:00
|
|
|
- run: gem install webrick
|
2020-10-21 01:06:49 -04:00
|
|
|
- run: ruby ../mspec/bin/mspec
|
|
|
|
working-directory: spec/ruby
|
2022-08-29 09:32:48 -04:00
|
|
|
env:
|
|
|
|
CHECK_LEAKS: true
|
2022-10-25 20:53:08 -04:00
|
|
|
- uses: ruby/action-slack@v3.0.0
|
2020-10-21 01:06:49 -04:00
|
|
|
with:
|
|
|
|
payload: |
|
|
|
|
{
|
|
|
|
"ci": "GitHub Actions",
|
|
|
|
"env": "${{ github.workflow }} / rubyspec @ ${{ matrix.ruby }}",
|
|
|
|
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
|
|
|
"commit": "${{ github.sha }}",
|
2022-10-25 20:53:08 -04:00
|
|
|
"branch": "${{ github.ref_name }}"
|
2020-10-21 01:06:49 -04:00
|
|
|
}
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
2021-08-01 22:39:38 -04:00
|
|
|
if: ${{ failure() && github.event_name == 'push' }}
|