t# This is a combination of 4 commits.
add sweeper to acceptance test github action
@@ -4,6 +4,10 @@ on:
pull_request:
branches:: [master]
+concurrency:
+ group: ci-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
acceptance-tests:
runs-on: ubuntu-18.04
@@ -24,8 +28,20 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- - name: Test
+ - name: Acceptance Tests
run: make testacc
env:
AIVEN_TOKEN: ${{ secrets.AIVEN_TOKEN }}
AIVEN_PROJECT_NAME: ${{ secrets.AIVEN_PROJECT_NAME }}
+
+ - name: Cleanup Aiven Resources
+ uses: nick-invision/retry@v2
+ if: always()
+ with:
+ timeout_minutes: 10
+ max_attempts: 3
+ command: make sweep
+ env:
+ AIVEN_TOKEN: ${{ secrets.AIVEN_TOKEN }}
+ AIVEN_PROJECT_NAME: ${{ secrets.AIVEN_PROJECT_NAME }}
+
