77 ARTIFACTS_PATH : artifacts
88 PROJECT_NAME : exordos_core
99 REPO_ENDPOINT_PUT : http://10.20.0.1:8082
10+ PACKER_VERSION : " 1.9.2"
11+ PYTHON_VERSION : " 3.12"
12+ CORE_BRANCH : " master"
13+ CORE_ENDPOINT_URL : http://10.20.0.2:11010
14+ CORE_USERNAME : " admin"
15+ CORE_PASSWORD : " admin"
16+ ALLOW_USER_PASSWD : " true"
1017
1118jobs :
1219 Build :
4754 with :
4855 name : build_artifacts
4956 path : artifacts/
50-
57+ FuncTests :
58+ needs : Build
59+ if : ${{ github.actor != 'dependabot[bot]' }}
60+ runs-on : ubuntu-24.04
61+ steps :
62+ - uses : actions/checkout@v6
63+ - name : Setup `packer`
64+ uses : hashicorp/setup-packer@main
65+ with :
66+ version : ${{ env.PACKER_VERSION }}
67+ - name : Install exordos
68+ run : curl -fsSL https://repository.genesis-core.tech/install.sh | sudo sh
69+ - name : set exordos config
70+ run : |
71+ exordos settings set-realm default --endpoint $CORE_ENDPOINT_URL
72+ exordos settings set-context default --name default --user $CORE_USERNAME --password $CORE_PASSWORD
73+ - name : Install hypervisor
74+ run : sudo exordos compute hypervisors init
75+ - name : Download build artifacts
76+ uses : actions/download-artifact@v8
77+ with :
78+ name : build_artifacts
79+ path : artifacts/
80+ - name : bootstrap exordos core
81+ run : |
82+ VERSION=$(cat artifacts/version.txt)
83+ # VERSION=0.0.9
84+ exordos bootstrap -i $VERSION -f -m core --admin-password $CORE_PASSWORD --cidr 10.20.0.0/22
85+ - name : sleep
86+ run : |
87+ sleep 10
88+ - name : check exordos core
89+ run : |
90+ set -eux
91+
92+ for i in {1..10}; do
93+ exordos e e list
94+
95+ sleep 1
96+ done
97+ exordos e e show core
98+ exordos compute nodes list
99+ exordos compute hypervisors list
100+ - name : Setup tmate session
101+ # if: ${{ failure() }}
102+ uses : mxschmitt/action-tmate@v3
103+ timeout-minutes : 10
104+ with :
105+ limit-access-to-actor : true
0 commit comments