Skip to content

Commit

Permalink
Merge pull request #228 from spree/elia/gh-actions
Browse files Browse the repository at this point in the history
Setup GH Actions
  • Loading branch information
elia authored Feb 10, 2022
2 parents e8e6388 + 372d318 commit 9077f17
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 26 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
- push
- pull_request

jobs:
build:
name: "ruby ${{ matrix.combo.ruby }} / ${{ matrix.combo.gemfile }}"
strategy:
matrix:
combo:
# TODO: re-enable commented combos and expand the matrix to Ruby 3.1 and Rails 7+

# - ruby: "3.0"
# gemfile: "rails_6_1"
# - ruby: "2.7"
# gemfile: "rails_6_1"
- ruby: "2.6"
gemfile: "rails_6_1"
- ruby: "2.5"
gemfile: "rails_6_1"

# - ruby: "2.7"
# gemfile: "rails_6_0"
- ruby: "2.6"
gemfile: "rails_6_0"
- ruby: "2.5"
gemfile: "rails_6_0"

- ruby: "2.5"
gemfile: "rails_5_2"

runs-on: ubuntu-latest

env:
GEMFILE_PATH: gemfiles/${{ matrix.combo.gemfile }}.gemfile

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.combo.ruby }}
- name: Setup project
run: bin/setup
- name: Run test
run: "bundle exec rake"
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

0 comments on commit 9077f17

Please sign in to comment.