name: Test on: [push, pull_request] jobs: test: strategy: fail-fast: false matrix: ruby: [ '2.7', '3.0', '3.1' ] gemfiles: - gemfiles/Gemfile-rails-6 - gemfiles/Gemfile-rails-7 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - uses: actions/setup-node@v1 with: node-version: '14.x' - run: | sudo apt-get update sudo apt-get install -y libsqlite3-dev - run: bundle install --gemfile ${{ matrix.gemfiles }} --jobs 4 --retry 3 - run: npm install - run: npm run build - run: bundle exec --gemfile ${{ matrix.gemfiles }} rake