From 2ddc8c2ea7653b790a20263523ff563a9b79c274 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Tue, 17 Aug 2021 13:12:22 +0200 Subject: [PATCH] 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. --- .github/workflows/spec.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index 23e91bd2..ab809c74 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -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