-
Notifications
You must be signed in to change notification settings - Fork 18
66 lines (64 loc) · 1.67 KB
/
manageiq_cross_repo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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: '["3.3"]'
node-version:
required: false
type: string
default: '["18"]'
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:13
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.6
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@v4
- 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@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://npm.manageiq.org/
- name: Run tests
run: bundle exec manageiq-cross_repo