| name: mailcow Integration Tests |
| branches: [ "master", "staging" ] |
| export DEBIAN_FRONTEND=noninteractive |
| sudo apt-get install python3 python3-pip git |
| sudo pip3 install ansible |
| - name: Prepair Test Environment |
| git clone https://github.com/mailcow/mailcow-integration-tests.git --branch $(curl -sL https://api.github.com/repos/mailcow/mailcow-integration-tests/releases/latest | jq -r '.tag_name') --single-branch . |
| VAULT_PW: ${{ secrets.MAILCOW_TESTS_VAULT_PW }} |
| VAULT_FILE: ${{ secrets.MAILCOW_TESTS_VAULT_FILE }} |
| - name: Start Integration Test Server |
| ansible-playbook mailcow-start-server.yml --diff |
| ANSIBLE_HOST_KEY_CHECKING: 'false' |
| - name: Setup Integration Test Server |
| ansible-playbook mailcow-setup-server.yml --private-key id_ssh_rsa --diff |
| ANSIBLE_HOST_KEY_CHECKING: 'false' |
| - name: Run Integration Tests |
| ansible-playbook mailcow-integration-tests.yml --private-key id_ssh_rsa --diff |
| ANSIBLE_HOST_KEY_CHECKING: 'false' |
| - name: Delete Integration Test Server |
| ansible-playbook mailcow-delete-server.yml --diff |
| ANSIBLE_HOST_KEY_CHECKING: 'false' |