.github/workflows/rspec.yml in csb-0.5.1 vs .github/workflows/rspec.yml in csb-0.6.0

- old
+ new

@@ -1,47 +1,37 @@ name: Build on: push: - branches: [ master ] + branches: [master] pull_request: jobs: rspec: - runs-on: ubuntu-latest env: BUNDLE_JOBS: 4 BUNDLE_RETRY: 3 + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile strategy: fail-fast: false matrix: - ruby: [2.6, 2.7] - gemfile: [ - "gemfiles/rails52.gemfile", - "gemfiles/rails61.gemfile", - ] + ruby: ["2.6", "2.7", "3.0", "3.1"] + gemfile: ["rails60", "rails61", "rails70"] + exclude: + - ruby: "2.6" + gemfile: "rails70" + - ruby: "3.1" + gemfile: "rails60" + - ruby: "3.1" + gemfile: "rails61" steps: - - name: Install packages - run: | - sudo apt update -y - sudo apt install -y libsqlite3-dev - - uses: actions/checkout@v2 - - uses: actions/cache@v1 - with: - path: /home/runner/bundle - key: bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }} - restore-keys: | - bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}- - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - - name: Install dependencies - run: | - bundle config path /home/runner/bundle - bundle config --global gemfile ${{ matrix.gemfile }} - bundle install - bundle update - bundle clean - - name: Run rspec - run: bundle exec rspec + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run rspec + run: bundle exec rspec