<!-- PR description--> Longevity test to run backup and send notification of test failure --- #### Does this PR need a docs update or release note? - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🤖 Supportability/Tests #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * https://github.com/alcionai/corso/issues/3679 #### Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
26 lines
719 B
YAML
26 lines
719 B
YAML
name: Weekly S3 Test Bucket Cleanup
|
|
on:
|
|
schedule:
|
|
# every saturday at 23:59 (11:59pm)
|
|
- cron: "59 23 * * 6"
|
|
|
|
permissions:
|
|
# required to retrieve AWS credentials
|
|
id-token: write
|
|
|
|
jobs:
|
|
S3-Test-Cleanup:
|
|
runs-on: ubuntu-latest
|
|
environment: Testing
|
|
|
|
steps:
|
|
- name: Configure AWS credentials from Test account
|
|
uses: aws-actions/configure-aws-credentials@v2
|
|
with:
|
|
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
|
role-session-name: integration-testing
|
|
aws-region: us-east-1
|
|
|
|
- name: Delete all files in the test bucket
|
|
run: |
|
|
aws s3 rm s3://${{ secrets.CI_TESTS_S3_BUCKET }} --recursive --include "*" --exclude "longevity/*" |