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:
parent
5cbd15eeef
commit
2ddc8c2ea7
1 changed files with 9 additions and 2 deletions
11
.github/workflows/spec.yml
vendored
11
.github/workflows/spec.yml
vendored
|
|
@ -2,9 +2,11 @@ name: Specs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -30,6 +32,11 @@ jobs:
|
||||||
suite: [models, features, controllers, ability, leftovers]
|
suite: [models, features, controllers, ability, leftovers]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.5
|
ruby-version: 2.5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue