Sha256: 6acfacbb9b188b9a956bfc13a744d083bf7453255fa81b8ba4d32a4640aa8d61
Contents?: true
Size: 1.85 KB
Versions: 3
Compression:
Stored size: 1.85 KB
Contents
name: ruby-tests on: pull_request: branches: - main push: branches: - main schedule: - cron: "0 10 * * *" jobs: build: name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }} runs-on: "ubuntu-latest" strategy: fail-fast: false matrix: ruby: [<%= options.ruby_versions.map {|v| [*Gem::Version.new(v).canonical_segments, "x"].take(3).join(".") }.join(", ") %>] gemfile: - Gemfile <%- if options.active_record? -%> services: postgres: image: postgres:11.5 ports: ["5432:5432"] options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 <%- end -%> steps: - uses: actions/checkout@v1 - uses: actions/cache@v2 with: path: vendor/bundle key: > ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }} restore-keys: > ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }} - name: Set up Ruby uses: actions/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} <%- if options.active_record? -%> - name: Install PostgreSQL client env: PGHOST: localhost PGUSER: postgres run: | sudo apt-get -yqq install libpq-dev psql -U postgres -c "create database test" <%- end -%> - name: Install gem dependencies env: BUNDLE_GEMFILE: ${{ matrix.gemfile }} run: | gem install bundler bundle config path vendor/bundle bundle update --jobs 4 --retry 3 - name: Run Tests env: PGHOST: localhost PGUSER: postgres BUNDLE_GEMFILE: ${{ matrix.gemfile }} run: | bundle exec rake
Version data entries
3 entries across 3 versions & 1 rubygems