-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.22 KB
/
opt-out-export-test-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: opt-out-export integration tests
on:
push:
paths:
- .github/workflows/opt-out-export-test-integration.yml
- attribution-data-file-share/**
workflow_dispatch:
# Ensure we only have one integration test running at a time
concurrency:
group: opt-out-export-test-integration
jobs:
# Deploy first if triggered by push
deploy:
if: ${{ github.event_name == 'push' }}
uses: ./.github/workflows/opt-out-export-test-deploy.yml
secrets: inherit
trigger:
if: ${{ always() }}
needs: deploy
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
defaults:
run:
working-directory: ./attribution-data-file-share
steps:
- uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.TEST_ACCOUNT_ID }}:role/delegatedadmin/developer/ab2d-test-github-actions
- name: Send event to trigger export lambda function
run: |
aws events put-events --entries file://test/events.json # TODO Add events.json matching rule for lambda trigger
# TODO Check bucket for export file