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'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rdoc'
|
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
|
2021-12-17 22:31:43 -05:00
|
|
|
if: ${{ !startsWith(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:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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
|
|
|
|
- uses: k0kubun/action-slack@v2.0.0
|
|
|
|
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 }}",
|
|
|
|
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
|
|
|
}
|
|
|
|
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' }}
|