Sha256: 8c5a3c17d0acc46e10dc33ce055d7983c0f4d2a9ec3d69a2ce516a0f8378aeb7

Contents?: true

Size: 1.54 KB

Versions: 95

Compression:

Stored size: 1.54 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: ["3.0.x", "2.7.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.1.6
        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.1.3
        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

95 entries across 95 versions & 1 rubygems

Version Path
email_data-1634949660.0.0 .github/workflows/ruby-tests.yml
email_data-1634863554.0.0 .github/workflows/ruby-tests.yml
email_data-1634777040.0.0 .github/workflows/ruby-tests.yml
email_data-1634690558.0.0 .github/workflows/ruby-tests.yml
email_data-1634604152.0.0 .github/workflows/ruby-tests.yml
email_data-1634517710.0.0 .github/workflows/ruby-tests.yml
email_data-1634431321.0.0 .github/workflows/ruby-tests.yml
email_data-1634344953.0.0 .github/workflows/ruby-tests.yml
email_data-1634258553.0.0 .github/workflows/ruby-tests.yml
email_data-1634172014.0.0 .github/workflows/ruby-tests.yml
email_data-1634085607.0.0 .github/workflows/ruby-tests.yml
email_data-1633999372.0.0 .github/workflows/ruby-tests.yml
email_data-1633912876.0.0 .github/workflows/ruby-tests.yml
email_data-1633826560.0.0 .github/workflows/ruby-tests.yml
email_data-1633740035.0.0 .github/workflows/ruby-tests.yml
email_data-1633653651.0.0 .github/workflows/ruby-tests.yml
email_data-1633567291.0.0 .github/workflows/ruby-tests.yml
email_data-1633480857.0.0 .github/workflows/ruby-tests.yml
email_data-1633394485.0.0 .github/workflows/ruby-tests.yml
email_data-1633308186.0.0 .github/workflows/ruby-tests.yml