Skip to content

Commit

Permalink
Add support for github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 8, 2020
1 parent 5ed53dc commit 77ce8ce
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Development

on: [push, pull_request]

jobs:
test:
strategy:
matrix:
os:
- ubuntu
- macos

ruby:
- 2.5
- 2.6
- 2.7

include:
- os: 'ubuntu'
ruby: 2.7
env: BUNDLE_GEMFILE=gems/rack1.gemfile
- os: 'ubuntu'
ruby: 2.7
env: BUNDLE_GEMFILE=gems/rack3.gemfile
- os: 'ubuntu'
ruby: 2.6
env: COVERAGE=PartialSummary,Coveralls

runs-on: ${{matrix.os}}-latest

steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}

- name: Installing packages (ubuntu)
if: matrix.os == 'ubuntu'
run: sudo apt-get install apache2-utils

- name: Install dependencies
run: ${{matrix.env}} bundle install

- name: Run tests
run: ${{matrix.env}} bundle exec rspec

0 comments on commit 77ce8ce

Please sign in to comment.