Skip to content

Commit

Permalink
* Configure GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jul 7, 2020
1 parent 4a8d968 commit fbb80db
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build

on:
push:
branches:
- master
pull_request:

jobs:
rspec:
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.1", "jruby-9.1.17", "jruby-9.2"]
experimental: [false]
include:
- ruby: "head"
experimental: true

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: /home/runner/bundle
key: bundle-${{ matrix.ruby }}-${{ hashFiles('../Gemfile') }}-${{ hashFiles('**/*.gemspec') }}
restore-keys: |
bundle-${{ matrix.ruby }}-
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Ragel
run: |
sudo apt-get update
sudo apt-get install ragel
- name: Bundle install
run: |
bundle config path /home/runner/bundle
bundle install
bundle update
- name: Run tests
run: |
bundle exec rake test

0 comments on commit fbb80db

Please sign in to comment.