Skip to content

Merge pull request #334 from ruby-go-gem/requires_go_1.24 #431

Merge pull request #334 from ruby-go-gem/requires_go_1.24

Merge pull request #334 from ruby-go-gem/requires_go_1.24 #431

name: patch_for_go_gem
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
paths:
- ".github/workflows/patch_for_go_gem.yml"
- "_tools/patch_for_go_gem/**"
- "Gemfile"
- "Gemfile.lock"
defaults:
run:
working-directory: _tools/patch_for_go_gem/
jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v5
- id: set-matrix
run: echo "matrix=$(cat matrix.json | jq -c)" >> $GITHUB_OUTPUT
working-directory: .github/workflows/
test:
name: "test (Go ${{ matrix.go }}, Ruby ${{ matrix.ruby }})"
needs:
- generate-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec
- name: Slack Notification (not success)
uses: act10ns/slack@v2
if: "! success()"
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
matrix: ${{ toJson(matrix) }}
notify:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Slack Notification (success)
uses: act10ns/slack@v2
if: always()
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}