Skip to content

Commit

Permalink
Use ruby/actions workflow for ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-nakamura145 committed Jan 19, 2024
1 parent 19b91b1 commit 2eb868a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ on:
branches: [ master ]

jobs:
test:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.7
versions: '["debug"]'

test:
needs: ruby-versions
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.3", "head", "debug"]
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}

steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/ruby-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ on:
branches: [ master ]

jobs:
test:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 3.2

test:
needs: ruby-versions
runs-on: macos-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
ruby-version: ["3.2", "3.3", "head"]
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}

steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ on:
branches: [ master ]

jobs:
test:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.7
versions: '["debug"]'

test:
needs: ruby-versions
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.3", "head", "debug"]
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}

steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ on:
branches: [ master ]

jobs:
test:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 3.0
versions: '["debug"]'

test:
needs: ruby-versions
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
ruby-version: ["3.0", "3.1", "3.2", "3.3", "head", "debug"]
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2eb868a

Please sign in to comment.