Skip to content

Commit

Permalink
Run tests via Github Actions (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin committed Jun 22, 2021
1 parent 6accfe0 commit 8e7b990
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: build

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby:
- 3.0
- 2.7
- 2.6
- 2.5
gemfile:
# Cucumber 3.2+
- Gemfile-rails.5.0.x
- Gemfile-rails.5.1.x
- Gemfile-rails.5.2.x
# Cucumber 4.1+
- Gemfile-rails.5.2.x-cukes-4
- Gemfile-rails.6.0.x
# Cucumber 5.3+
- Gemfile-rails.5.2.x-cukes-5
- Gemfile-rails.6.0.x-cukes-5
# Edge
- Gemfile-rails.edge
exclude:
- gemfile: Gemfile-rails.edge
ruby: 2.6
- gemfile: Gemfile-rails.edge
ruby: 2.5

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
3 changes: 1 addition & 2 deletions gemfiles/Gemfile-rails.5.2.x-cukes-5
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ gemspec :path => ".."

gem "rails", "~> 5.2.0"
gem "cucumber", "~> 5.0"
gem "cucumber-rails", github: 'cucumber/cucumber-rails', branch: 'cucumber5'

gem "cucumber-rails"
gem 'fabrication', github: 'mathieujobin/fabrication', ref: '923cf6fcefd0566b1d6be7bd2f685b89388f4800'
2 changes: 1 addition & 1 deletion gemfiles/Gemfile-rails.6.0.x-cukes-5
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ gemspec :path => ".."

gem "rails", "~> 6.0.0"
gem "cucumber", "~> 5.0"
gem "cucumber-rails", github: 'cucumber/cucumber-rails', branch: 'cucumber5'
gem "cucumber-rails"
gem 'fabrication', github: 'mathieujobin/fabrication', ref: '923cf6fcefd0566b1d6be7bd2f685b89388f4800'

0 comments on commit 8e7b990

Please sign in to comment.