From 612734b7b7c844065d5af5443eee5e0758c74eea Mon Sep 17 00:00:00 2001 From: Jonathan Abbett Date: Thu, 17 Jun 2021 13:32:53 -0400 Subject: [PATCH] Gem specific changes from https://www.prioritized.net/blog/testing-ruby-gems-with-github-actions --- .github/workflows/ruby.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 11a130e..077a45e 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -4,7 +4,7 @@ on: push: branches: [ master, develop ] pull_request: - branches: [ develop ] + branches: "*" jobs: test: @@ -12,6 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: include: - rails-version: "5.2.0" @@ -24,8 +25,19 @@ jobs: env: RAILS_VERSION: ${{ matrix.rails-version }} uses: ruby/setup-ruby@v1 + # with: + # bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Generate lockfile + run: bundle lock + - name: Cache dependencies + uses: actions/cache@v1 with: - bundler-cache: true # runs 'bundle install' and caches installed gems automatically + path: vendor/bundle + key: bundle-${{ hashFiles('Gemfile.lock') }} + - name: Install dependencies + run: bundle config path vendor/bundle + run: gem install bundler --conservative + run: bundle check || bundle install - name: Install JS dependencies run: yarn - name: Create database