Sha256: 6a40e460070d45dbb823f55442c184acca469826dba5fe9994534c23f61a3a18
Contents?: true
Size: 1.52 KB
Versions: 29
Compression:
Stored size: 1.52 KB
Contents
name: Tests on: pull_request: branches: - main push: branches: - main jobs: build: name: Tests with Ruby ${{ matrix.ruby }} runs-on: "ubuntu-latest" strategy: fail-fast: false matrix: ruby: ["2.7.x", "2.6.x", "2.5.x"] services: postgres: image: postgres:11.5 ports: ["5432:5432"] options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v1 - uses: actions/cache@v2 with: path: vendor/bundle key: > ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }} restore-keys: > ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }} - name: Set up Ruby uses: actions/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Install PostgreSQL 11 client run: | sudo apt-get -yqq install libpq-dev - name: Install gem dependencies env: PGHOST: localhost PGUSER: postgres RAILS_ENV: test run: | gem install bundler bundle config path vendor/bundle bundle install --jobs 4 --retry 3 - name: Run Tests env: PGHOST: localhost PGUSER: postgres RAILS_ENV: test run: | psql -U postgres -c "create database test" bundle exec rake
Version data entries
29 entries across 29 versions & 1 rubygems