Sha256: 85a6a2c4c7c147d4f0d97adab005c886c872ac4f77482253babc199715d4a7a6
Contents?: true
Size: 1.84 KB
Versions: 4
Compression:
Stored size: 1.84 KB
Contents
--- name: ruby-tests on: pull_request_target: push: branches: - main workflow_dispatch: inputs: {} jobs: build: name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }} runs-on: "ubuntu-latest" if: | github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' || github.actor != 'dependabot[bot]' strategy: fail-fast: false matrix: ruby: [<%= ruby_versions_for_workflow %>] 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) }} - name: Set up Ruby uses: ruby/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: BUNDLE_GEMFILE: ${{ matrix.gemfile }} <%- if options.active_record? -%> PGHOST: localhost PGUSER: postgres <%- end -%> run: | bundle exec rake
Version data entries
4 entries across 4 versions & 1 rubygems