diff --git a/.github/actions/run-ee-server/action.yml b/.github/actions/run-ee-server/action.yml index f7d4379f..3cdb53d2 100644 --- a/.github/actions/run-ee-server/action.yml +++ b/.github/actions/run-ee-server/action.yml @@ -18,6 +18,27 @@ inputs: runs: using: "composite" steps: + + - name: Install crudini to manipulate config.conf + # This will only work on the Github hosted runners. + run: pipx install crudini --pip-args "-c ${{ github.workspace }}/.github/workflows/requirements.txt" + working-directory: .github/workflows + shell: bash + + - name: Create config.conf + run: cp config.conf.template config.conf + working-directory: .github/workflows + shell: bash + + - name: Use enterprise edition instead of community edition in config.conf + run: | + crudini --existing=param --set config.conf enterprise-edition hosts '' + crudini --existing=param --set config.conf enterprise-edition hosts 127.0.0.1:3000 + crudini --existing=param --set config.conf enterprise-edition user superuser + crudini --existing=param --set config.conf enterprise-edition password superuser + working-directory: .github/workflows + shell: bash + - name: Create config folder to store configs in run: mkdir configs shell: bash diff --git a/.github/workflows/config.conf.template b/.github/workflows/config.conf.template new file mode 100644 index 00000000..e9fd3924 --- /dev/null +++ b/.github/workflows/config.conf.template @@ -0,0 +1,7 @@ +[community-edition] +hosts: 127.0.0.1:3000 + +[enterprise-edition] +hosts : +user : +password : diff --git a/.github/workflows/requirements.txt b/.github/workflows/requirements.txt new file mode 100644 index 00000000..5099e0d6 --- /dev/null +++ b/.github/workflows/requirements.txt @@ -0,0 +1,4 @@ +parver==0.5 +crudini==0.9.4 +delocate==0.10.4 +mypy==1.10.0