ra_change #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jepsen Tests for RA | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [ra_change] | |
concurrency: | |
group: jepsen | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
container: | |
image: pivotalrabbitmq/jepsen | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Jepsen tests | |
run: ci/jepsen-test.sh | |
env: | |
GCP_JEPSEN_CREDENTIALS: ${{ secrets.GCP_JEPSEN_CREDENTIALS }} | |
GCP_PROJECT: ${{ secrets.GCP_PROJECT }} | |
- name: Stop cluster | |
if: always() | |
working-directory: terraform-state | |
run: | | |
terraform init | |
terraform destroy -auto-approve | |
- name: Delete configuration | |
if: always() | |
run: | | |
rm jepsen-bot.json | |
rm -rf terraform-state | |
rm -rf terraform.tfstate |