Sha256: 422de77098e341841d6e0b2755c1d2c863e6a18b609c61fc2cfaedd83756c01d
Contents?: true
Size: 1.43 KB
Versions: 11
Compression:
Stored size: 1.43 KB
Contents
name: Ruby Gem on: push: branches: - master pull_request: jobs: build: name: Tests and Code Style runs-on: ubuntu-latest strategy: matrix: ruby: [2.6] rails: [4, 5, 6] include: - ruby: 2.7 rails: 6 - ruby: '3.0' rails: 6 - ruby: '3.0' rails: 7 exclude: # rails 6 requires ruby >= 2.5 - ruby: 2.4 rails: 6 steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Install sqlite3 run: sudo apt-get install libsqlite3-dev - name: Install bundler env: GEMFILE_PATH: gemfiles/Gemfile_${{ matrix.rails }} RAILS_V: ${{ matrix.rails }} run: | rm -f Gemfile.lock && rm -f Gemfile cp $GEMFILE_PATH ./Gemfile bundler_v='2.1.4' if [ $RAILS_V = "4" ]; then bundler_v="1.16.6"; fi gem install bundler -v "~> $bundler_v" bundle _${bundler_v}_ install --jobs 4 --retry 3 # remote ssh debugger # - name: Setup tmate session (remote session debugger) # uses: mxschmitt/action-tmate@v3 - name: Tests (rspec) run: | bundle exec rspec - name: Code style (Rubocop) run: bundle exec rubocop if: matrix.ruby == '2.6' && matrix.rails == '6'
Version data entries
11 entries across 11 versions & 1 rubygems