Skip to content

Commit

Permalink
Use setup-ruby for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
shugo committed Feb 6, 2024
1 parent 3d83330 commit 47ec8b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ name: macos
on: [push]

jobs:
build:
test:
runs-on: macos-latest
strategy:
matrix:
ruby: [ head, 3.3 ]
timeout-minutes: 10
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: |
gem install bundler --no-document
bundle install
- name: Run test
run: bundle exec rake test
3 changes: 1 addition & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on: [push]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ head, 3.3, 3.2, 3.1 ]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
Expand All @@ -17,7 +17,6 @@ jobs:
- name: Install dependencies
run: |
sudo apt install libncursesw5-dev
gem install bundler --no-document
bundle install
- name: Run test
run: xvfb-run bundle exec rake test
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: windows
on: [push]

jobs:
build:
test:
runs-on: windows-latest
strategy:
matrix:
Expand Down

0 comments on commit 47ec8b9

Please sign in to comment.