-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (62 loc) · 2.78 KB
/
integration_test.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
62
63
64
65
66
67
68
69
70
71
name: Integration Tests
on: [pull_request]
jobs:
tutor-integration-test:
name: Integration with Tutor
strategy:
matrix:
# tutor_version: ["Redwood", "Quince", "Palm", "Olive"]
tutor_version: ["<19.0.0", "<18.0.0", "<17.0.0", "<16.0.0"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Tutor & launch
run: |
pip install "tutor${{ matrix.tutor_version }}"
pip install -e .
TUTOR_ROOT="$(pwd)" tutor --version
TUTOR_ROOT="$(pwd)" tutor config save
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Enable the tutor plugin
run: |
TUTOR_ROOT="$(pwd)" tutor plugins enable picasso
TUTOR_ROOT="$(pwd)" tutor picasso -h
- name: Adding data to the config.yml
run: |
echo "PICASSO_MANAGE_DPKG:" | tee -a ./config.yml
echo " name: eox-manage" | tee -a ./config.yml
echo " repo: [email protected]:eduNEXT/eox-manage.git" | tee -a ./config.yml
echo " version: v5.2.0" | tee -a ./config.yml
echo "PICASSO_THEMES:" | tee -a ./config.yml
echo "- name: endx-saas-themes" | tee -a ./config.yml
echo " repo: [email protected]:eduNEXT/ednx-saas-themes.git" | tee -a ./config.yml
echo " version: master" | tee -a ./config.yml
echo "PICASSO_EXTRA_COMMANDS:" | tee -a ./config.yml
echo "- tutor plugins update" | tee -a ./config.yml
echo "- tutor plugins index add https://raw.githubusercontent.com/eduNEXT/tutor-plugin-indexes/picasso_test/" | tee -a ./config.yml
echo "- tutor plugins install mfe mfe_extensions aspects" | tee -a ./config.yml
echo "- tutor plugins enable mfe mfe_extensions aspects" | tee -a ./config.yml
echo "- tutor config save" | tee -a ./config.yml
- name: Check run-extra-commands
run: |
TUTOR_ROOT="$(pwd)" tutor picasso run-extra-commands
- name: Check enable-themes
run: |
TUTOR_ROOT="$(pwd)" tutor picasso enable-themes
- name: Check enable-private-packages
run: |
TUTOR_ROOT="$(pwd)" tutor picasso enable-private-packages
if grep -q 'eox-manage' env/build/openedx/requirements/private.txt; then
echo "'eox-manage' found in env/build/openedx/requirements/private.txt."
elif grep -q 'eox-manage' env/build/openedx/Dockerfile; then
echo "'eox-manage' found in env/build/openedx/Dockerfile."
else
echo "'eox-manage' not found for the building process."
exit 1
fi