Sha256: 849f6951a396e3a6ee7e80591b57067e96941a960dba37c0e227f7104443479f

Contents?: true

Size: 1.53 KB

Versions: 122

Compression:

Stored size: 1.53 KB

Contents

---
name: ruby-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"]

    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@v2.3.4

      - 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

122 entries across 122 versions & 1 rubygems

Version Path
email_data-1618359706.0.0 .github/workflows/ruby-tests.yml
email_data-1618273438.0.0 .github/workflows/ruby-tests.yml
email_data-1618186944.0.0 .github/workflows/ruby-tests.yml
email_data-1618100556.0.0 .github/workflows/ruby-tests.yml
email_data-1618014169.0.0 .github/workflows/ruby-tests.yml
email_data-1617928153.0.0 .github/workflows/ruby-tests.yml
email_data-1617841862.0.0 .github/workflows/ruby-tests.yml
email_data-1617755322.0.0 .github/workflows/ruby-tests.yml
email_data-1617668900.0.0 .github/workflows/ruby-tests.yml
email_data-1617582173.0.0 .github/workflows/ruby-tests.yml
email_data-1617495950.0.0 .github/workflows/ruby-tests.yml
email_data-1617409388.0.0 .github/workflows/ruby-tests.yml
email_data-1617236585.0.0 .github/workflows/ruby-tests.yml
email_data-1617150053.0.0 .github/workflows/ruby-tests.yml
email_data-1617063382.0.0 .github/workflows/ruby-tests.yml
email_data-1616890891.0.0 .github/workflows/ruby-tests.yml
email_data-1616804361.0.0 .github/workflows/ruby-tests.yml
email_data-1616718259.0.0 .github/workflows/ruby-tests.yml
email_data-1616631663.0.0 .github/workflows/ruby-tests.yml
email_data-1616545712.0.0 .github/workflows/ruby-tests.yml