Skip to content

Commit

Permalink
Consolidate CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Jan 7, 2020
1 parent 00a65d2 commit 44c07a8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 96 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Unit Tests

on: [push, pull_request]
jobs:
build:
name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
ruby: ["2.3", "2.4", "2.5", "2.6", "2.7"]
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: Select Ruby Version
uses: eregon/use-ruby-action@v1
with:
ruby-version: ${{ matrix.ruby }}
base: update
- name: Update RubyGems & Bundler
run: gem update --system --no-document --conservative
- name: Install Dependencies
run: bundle install --jobs=3 --retry=3
- name: Run Test
run: ruby -v && bundle exec rake
env:
CI: true
32 changes: 0 additions & 32 deletions .github/workflows/linux.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/macos.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/windows.yml

This file was deleted.

0 comments on commit 44c07a8

Please sign in to comment.