Skip to content

Commit

Permalink
pipeline improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Nov 20, 2024
1 parent 9969f5a commit 302138f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/actions/run-ee-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/config.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[community-edition]
hosts: 127.0.0.1:3000

[enterprise-edition]
hosts :
user :
password :
4 changes: 4 additions & 0 deletions .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parver==0.5
crudini==0.9.4
delocate==0.10.4
mypy==1.10.0

0 comments on commit 302138f

Please sign in to comment.