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

Version Path
email_data-1605588714 .github/workflows/tests.yml
email_data-1605483437 .github/workflows/tests.yml
email_data-1605433987 .github/workflows/tests.yml
email_data-1605432951 .github/workflows/tests.yml
email_data-1605293459 .github/workflows/tests.yml
email_data-1605067682 .github/workflows/tests.yml
email_data-1604944785 .github/workflows/tests.yml
email_data-1604907377 .github/workflows/tests.yml
email_data-1604799858 .github/workflows/tests.yml
email_data-1604735754 .github/workflows/tests.yml
email_data-1604703468 .github/workflows/tests.yml
email_data-1604569392 .github/workflows/tests.yml
email_data-1604444717 .github/workflows/tests.yml
email_data-1604325875 .github/workflows/tests.yml
email_data-1604239223 .github/workflows/tests.yml
email_data-1604097095 .github/workflows/tests.yml
email_data-1604010434 .github/workflows/tests.yml
email_data-1603923660 .github/workflows/tests.yml
email_data-1603817241 .github/workflows/tests.yml
email_data-1603707709 .github/workflows/tests.yml