mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
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:
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue