-
Notifications
You must be signed in to change notification settings - Fork 29
98 lines (79 loc) · 2.82 KB
/
e2e-migration.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: E2E migration testing
on:
push:
tags:
- v*
branches:
- main
- develop
workflow_dispatch:
jobs:
e2e-migration-from-0_9_0-to-latest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-ver: ["3.11", "3.12"]
os: [ubuntu-latest]
# os: [self-hosted-arm64, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-ver }}
- name: header
run: |
echo -e "\e[1;33m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\e[0m
\e[1;33m┃\e[0m \e[1;36m Migration from v0.9.0 to latest \e[0m \e[1;33m┃\e[0m
\e[1;33m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\e[0m"
- name: install frappe from v0.9.0
run: |
cd /tmp
python -m pip install -U git+https://github.com/rtCamp/[email protected]
- name: frappe version
run: fm --version
- name: e2e run
timeout-minutes: 20
working-directory: test
run: |
./migration_test.sh oldToNew
- name: cleanup
if: always()
run: |
python -m pip uninstall -y frappe-manager
sudo rm -rf ~/frappe
e2e-migration-from-before_latest-to-latest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-ver: ["3.11", "3.12"]
os: [ubuntu-latest]
# os: [self-hosted-arm64, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-ver }}
- name: install jq
run: |
sudo apt upgrade -y
sudo apt install -y jq curl
- name: header
run: |
echo -e "\e[1;33m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\e[0m
\e[1;33m┃\e[0m \e[1;36m Migration from latest~1 to latest \e[0m \e[1;33m┃\e[0m
\e[1;33m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\e[0m"
- name: install frappe previous the latest release
run: |
python -m pip install -U git+https://github.com/rtCamp/Frappe-Manager.git@$(curl --silent https://api.github.com/repos/rtCamp/Frappe-Manager/tags | jq -r '.[1].name')
- name: frappe version
run: fm --version
- name: e2e run
timeout-minutes: 30
working-directory: test
run: |
./migration_test.sh semiNewToNew
- name: cleanup
if: always()
run: |
python -m pip uninstall -y frappe-manager
sudo rm -rf ~/frappe