-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (51 loc) · 1.57 KB
/
eco-vcenter-ci.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
---
name: Ansible Eco vCenter Integration Test
on:
workflow_dispatch:
issue_comment:
types: [created]
pull_request:
branches:
- '**'
push:
branches:
- main
- 'release-\d.\d\d'
- add_integration_ci_vcenter_info
permissions:
contents: read
jobs:
ansible_integration_test:
if: ${{
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/run-integration-on-vcenter'))
}}
runs-on: ["self-hosted", linux, X64]
steps:
- name: Update pip, git
if: runner.os == 'Linux' && startsWith(runner.name, 'ubuntu')
run: |
set -euxo pipefail
sudo apt-get update
sudo apt-get install podman
- name: Checkout repo
uses: actions/checkout@v4
with:
path: ansible_collections/cloud/vmware_ops
- name: Generate integration config
working-directory: ansible_collections/cloud/vmware_ops/scripts
run: |
chmod +x generate_integration_config.sh
./generate_integration_config.sh
env:
VCENTER_HOSTNAME: ${{ secrets.VCENTER_HOSTNAME }}
VCENTER_USERNAME: ${{ secrets.VCENTER_USERNAME }}
VCENTER_PASSWORD: ${{ secrets.VCENTER_PASSWORD }}
- name: Run integration tests
run: |
python3 -m venv .venv
source .venv/bin/activate
make eco-vcenter-ci
working-directory: ansible_collections/cloud/vmware_ops
env:
ANSIBLE_COLLECTIONS_PATH: "${{ github.workspace }}"