-
Notifications
You must be signed in to change notification settings - Fork 133
61 lines (46 loc) · 1.8 KB
/
ci_standalone-rbac-roles.yml
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
---
name: Standalone RBAC Roles
on:
pull_request:
branches:
- '**'
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
- 'CHANGES/**'
push:
branches:
- '**'
workflow_dispatch:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Update apt
run: sudo apt -y update
- name: Install LDAP requirements
run: sudo apt-get install -y libsasl2-dev python3 libldap2-dev libssl-dev build-essential
- name: Install python requirements required to run integration tests
run: pip install requests pyyaml
- name: create the .compose.env file
run: rm -f .compose.env; cp .compose.env.example .compose.env
- name: workaround github worker permissions issues
run: sed -i.bak 's/PIP_EDITABLE_INSTALL=1/PIP_EDITABLE_INSTALL=0/' .compose.env
- name: workaround github worker permissions issues
run: sed -i.bak 's/WITH_DEV_INSTALL=1/WITH_DEV_INSTALL=0/' .compose.env
- name: disable approval setting override
run: sed -i.bak 's/PULP_GALAXY_REQUIRE_CONTENT_APPROVAL/#PULP_GALAXY_REQUIRE_CONTENT_APPROVAL/' dev/standalone/galaxy_ng.env
- name: build stack
run: make docker/all
- name: start the compose stack
run: ./compose up -d
- name: give stack some time to spin up
run: COMPOSE_INTERACTIVE_NO_CLI=1 python dev/common/poll.py
- name: set keyring on staging repo for signature upload
run: ./compose exec -T api ./entrypoint.sh manage set-repo-keyring --repository staging --keyring /etc/pulp/certs/galaxy.kbx -y
- name: run the integration tests
run: HUB_LOCAL=1 ./dev/standalone-rbac-roles/RUN_INTEGRATION.sh