name: Test on: push: branches: [ master, 0.9-stable ] pull_request: branches: [ master, 0.9-stable ] jobs: build: runs-on: ubuntu-latest strategy: matrix: ruby: - '2.5.x' - '2.6.x' appraisal: - 'google-cloud-tasks-1.0' - 'google-cloud-tasks-1.1' - 'google-cloud-tasks-1.2' - 'google-cloud-tasks-1.3' - 'rails-5.2' - 'rails-6.0' steps: - name: Setup System run: sudo apt-get install libsqlite3-dev - uses: actions/checkout@v2 - uses: zhulik/redis-action@1.1.0 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Build and test with Rake env: APPRAISAL_CONTEXT: ${{ matrix.appraisal }} run: | gem install bundler bundle install --jobs 4 --retry 3 bundle exec rubocop bundle exec appraisal ${APPRAISAL_CONTEXT} bundle bundle exec appraisal ${APPRAISAL_CONTEXT} rspec