Sha256: 0c9cd892742137b66370cb9721f30469e97cc1cb1cb1eb2dab924515cb916154

Contents?: true

Size: 1.54 KB

Versions: 12

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.5

      - 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

12 entries across 12 versions & 1 rubygems

Version Path
email_data-1641689574.0.0 .github/workflows/ruby-tests.yml
email_data-1641084676.0.0 .github/workflows/ruby-tests.yml
email_data-1640479855.0.0 .github/workflows/ruby-tests.yml
email_data-1639875066.0.0 .github/workflows/ruby-tests.yml
email_data-1639270185.0.0 .github/workflows/ruby-tests.yml
email_data-1638665377.0.0 .github/workflows/ruby-tests.yml
email_data-1638060421.0.0 .github/workflows/ruby-tests.yml
email_data-1637455647.0.0 .github/workflows/ruby-tests.yml
email_data-1636850828.0.0 .github/workflows/ruby-tests.yml
email_data-1636246001.0.0 .github/workflows/ruby-tests.yml
email_data-1635641195.0.0 .github/workflows/ruby-tests.yml
email_data-1635036401.0.0 .github/workflows/ruby-tests.yml