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