Skip to content

Commit 44c07a8

Browse files
committed
Consolidate CI action
1 parent 00a65d2 commit 44c07a8

File tree

4 files changed

+30
-96
lines changed

4 files changed

+30
-96
lines changed

.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Unit Tests
2+
3+
on: [push, pull_request]
4+
jobs:
5+
build:
6+
name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}"
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [macos-latest, windows-latest, ubuntu-latest]
12+
ruby: ["2.3", "2.4", "2.5", "2.6", "2.7"]
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v1
16+
with:
17+
fetch-depth: 10
18+
- name: Select Ruby Version
19+
uses: eregon/use-ruby-action@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby }}
22+
base: update
23+
- name: Update RubyGems & Bundler
24+
run: gem update --system --no-document --conservative
25+
- name: Install Dependencies
26+
run: bundle install --jobs=3 --retry=3
27+
- name: Run Test
28+
run: ruby -v && bundle exec rake
29+
env:
30+
CI: true

.github/workflows/linux.yaml

-32
This file was deleted.

.github/workflows/macos.yaml

-32
This file was deleted.

.github/workflows/windows.yml

-32
This file was deleted.

0 commit comments

Comments
 (0)