Sha256: d32a8e7dc38937e8ba35aa3b7872cc8740714cce420bbdb2ee3f065e3bc2bb12

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

name: ManageIQ Cross Repo Workflow

on:
  workflow_call:
    inputs:
      test-repos:
        required: true
        type: string
      repos:
        required: true
        type: string
      test-suite:
        required: false
        type: string
      ruby-version:
        required: false
        type: string
        default: '["2.7"]'
      node-version:
        required: false
        type: string
        default: '["12"]'

jobs:
  ci:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        test-repo: ${{ fromJson(inputs.test-repos) }}
        ruby-version: ${{ fromJson(inputs.ruby-version) }}
        node-version: ${{ fromJson(inputs.node-version) }}
    services:
      postgres:
        image: manageiq/postgresql:10
        env:
          POSTGRESQL_USER: root
          POSTGRESQL_PASSWORD: smartvm
          POSTGRESQL_DATABASE: vmdb_test
        options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
        ports:
        - 5432:5432
      memcached:
        image: manageiq/memcached:1.5
        ports:
        - 11211:11211
    env:
      TEST_SUITE: ${{ inputs.test-suite }}
      REPOS: ${{ inputs.repos }}
      TEST_REPO: ${{ matrix.test-repo }}
      PGHOST: localhost
      PGPASSWORD: smartvm
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true
    - name: Set up Node
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
        registry-url: https://npm.manageiq.org/
    - name: Run tests
      run: bundle exec manageiq-cross_repo

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
manageiq-cross_repo-2.3.0 .github/workflows/manageiq_cross_repo.yaml