Sha256: add16f73432c5208f39638ad8ac01851fee75682b333b8f24534eee6ffc2c705
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
name: ruby-tests on: pull_request: push: workflow_dispatch: inputs: {} jobs: build: name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }} runs-on: "ubuntu-latest" 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) }} restore-keys: > ${{ 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: PGHOST: localhost PGUSER: postgres BUNDLE_GEMFILE: ${{ matrix.gemfile }} run: | bundle exec rake
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dopstick-0.0.7 | lib/dopstick/generator/gem/templates/tests_workflow.erb |