Run next-rails specs if PR comes from next-rails

If the source branch of you PR contains the string next-rails,
we run the spec for the next rails version.
This commit is contained in:
Henne Vogelsang 2021-08-17 13:12:22 +02:00
parent 5cbd15eeef
commit 2ddc8c2ea7
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -2,9 +2,11 @@ name: Specs
on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches: [ master ]
branches:
- master
workflow_dispatch:
jobs:
@ -30,6 +32,11 @@ jobs:
suite: [models, features, controllers, ability, leftovers]
steps:
- uses: actions/checkout@v2
- name: Sets env vars for next-rails
run: |
echo "BUNDLE_GEMFILE=Gemfile.next" >> $GITHUB_ENV
echo "BUNDLE_CACHE_PATH=vendor/cache.next" >> $GITHUB_ENV
if: contains(github.head_ref, 'next-rails')
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5