Skip to content

Commit c71600b

Browse files
authored
Merge pull request #9 from ruby/unify-ci
Unify OS environments for GitHub Actions
2 parents c9ec44a + 24c0832 commit c71600b

File tree

4 files changed

+27
-85
lines changed

4 files changed

+27
-85
lines changed

.github/workflows/macos.yml

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

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: test (${{ matrix.ruby }} / ${{ matrix.os }})
8+
strategy:
9+
matrix:
10+
ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, head ]
11+
os: [ ubuntu-latest, macos-latest ]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install packages
16+
if: ${{ matrix.os == 'ubuntu-latest' }}
17+
run: |
18+
sudo apt update -qy
19+
sudo apt install libgdbm6 libgdbm-dev
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby }}
24+
- name: Install dependencies
25+
run: bundle install
26+
- name: Run test
27+
run: rake compile test

.github/workflows/ubuntu-rvm.yml

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

.github/workflows/ubuntu.yml

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

0 commit comments

Comments
 (0)