Sha256: 70d91cda178b3216aebfcb3ee26062e413014bcac69c6cfc89a036bb1d7fefd0

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

name: Message Bus Tests

on:
  pull_request:
  push:
    branches:
      - main

env:
  PGHOST: localhost
  PGPORT: 5432
  PGPASSWORD: postgres
  PGUSER: postgres

jobs:
  build:
    runs-on: ubuntu-latest
    name: Ruby ${{ matrix.ruby }} (redis ${{ matrix.redis }})
    timeout-minutes: 10

    services:
      postgres:
        image: postgres:14.0
        env:
          POSTGRES_PASSWORD: postgres
        ports:
          - 5432:5432
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
      redis:
        image: ${{ format('redis:{0}', matrix.redis) }}
        ports:
          - 6379:6379
        options: >-
          --health-cmd "redis-cli ping"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    strategy:
      fail-fast: false
      matrix:
        ruby: ["3.0", "2.7", "2.6"]
        redis: ["5", "6"]

    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true # 'bundle install' and cache

      - name: Set up Node.js
        uses: actions/setup-node@v2
        with:
          node-version: 16
          cache: npm

      - name: Setup npm
        run: npm install

      - name: Create Database
        run: |
          createdb message_bus_test

      - name: Tests
        run: bundle exec rake
        timeout-minutes: 3

      - name: Linting
        run: npx eslint .

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
message_bus-3.3.7 .github/workflows/ci.yml