Skip to content

Commit 9ad827a

Browse files
committed
Unify OS environments for GitHub Actions
1 parent c9ec44a commit 9ad827a

File tree

3 files changed

+10
-68
lines changed

3 files changed

+10
-68
lines changed

.github/workflows/macos.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
name: ubuntu
1+
name: test
22

33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
runs-on: ubuntu-latest
6+
test:
7+
name: test (${{ matrix.ruby }} / ${{ matrix.os }})
88
strategy:
99
matrix:
10-
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
10+
ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, head ]
11+
os: [ ubuntu-latest, macos-latest ]
12+
runs-on: ${{ matrix.os }}
1113
steps:
12-
- uses: actions/checkout@master
14+
- uses: actions/checkout@v2
1315
- name: Install packages
16+
if: ${{ matrix.os == 'ubuntu-latest' }}
1417
run: |
1518
sudo apt update -qy
1619
sudo apt install libgdbm5 libgdbm-dev
1720
- name: Set up Ruby
18-
uses: actions/setup-ruby@v1
21+
uses: ruby/setup-ruby@v1
1922
with:
2023
ruby-version: ${{ matrix.ruby }}
21-
- name: Set up Bundler
22-
run: gem install bundler --no-document
2324
- name: Install dependencies
2425
run: bundle install
2526
- name: Run test
26-
run: rake
27+
run: rake compile test

.github/workflows/ubuntu-rvm.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)