Skip to content

Commit

Permalink
Replace main.yml with test.yml for improved CI workflow and Ruby vers…
Browse files Browse the repository at this point in the history
…ion management
  • Loading branch information
ydah committed Jan 24, 2025
1 parent 545de80 commit ef0138a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/main.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- main

pull_request:

jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 2.5
build:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
exclude:
- ruby: 2.5
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake

0 comments on commit ef0138a

Please sign in to comment.