diff --git a/.github/auto_wizard.json b/.github/auto_wizard.json new file mode 100644 index 0000000..90852bb --- /dev/null +++ b/.github/auto_wizard.json @@ -0,0 +1,31 @@ +{ + "Token": "docker_compose_token", + "TextModuleLocale": { + "Locale": "en-us" + }, + "Users": [ + { + "login": "info@zammad.org", + "firstname": "Zam", + "lastname": "Mad", + "email": "info@zammad.org", + "organization": "Zammad", + "password": "Zammad" + } + ], + "Settings": [ + { + "name": "product_name", + "value": "Zammad Service Desk" + }, + { + "name": "system_online_service", + "value": true + } + ], + "Organizations": [ + { + "name": "Zammad" + } + ] +} \ No newline at end of file diff --git a/.github/tests.sh b/.github/tests.sh index 728e5bb..e3d44fd 100755 --- a/.github/tests.sh +++ b/.github/tests.sh @@ -18,3 +18,12 @@ sleep 30 echo echo "Success - Zammad is up :)" echo +echo "Execute autowizard..." +echo + +curl -I --silent --fail --show-error "http://localhost/#getting_started/auto_wizard/docker_compose_token" > /dev/null + +echo +echo "Autowizard executed successful" +echo + diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fecb75c..6c4ec94 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,6 @@ jobs: lint-docker-files: runs-on: ubuntu-latest - needs: lint-bash-scripts steps: - name: Checkout uses: actions/checkout@v1 @@ -36,7 +35,6 @@ jobs: test-docker-compose: timeout-minutes: 10 runs-on: ubuntu-latest - needs: lint-docker-files steps: - name: Checkout uses: actions/checkout@v1 @@ -44,7 +42,7 @@ jobs: run: docker-compose pull - name: run docker-compose up run: docker-compose up --detach + - name: add autowizard file + run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad - name: run tests run: .github/tests.sh - -