-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (57 loc) · 2.01 KB
/
account-delete-monitor.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Account Delete Monitor
on:
# Only run the tests for this service when any of the following file paths change
pull_request:
paths:
- 'infrastructure/account-delete-monitor/**'
- 'packages/**'
- 'docker-compose.yml'
- 'lambdas/account-delete-monitor/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/account-delete-monitor.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev
paths:
- 'infrastructure/account-delete-monitor/**'
- 'packages/**'
- 'lambdas/account-delete-monitor/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/account-delete-monitor.yml'
- '.github/workflows/reuse-*.yml'
jobs:
test-integrations:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/reuse-test-integrations.yml
with:
scope: account-delete-monitor
secrets: inherit
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: account-delete-monitor-cdk
stack-output-path: infrastructure/account-delete-monitor/cdktf.out/stacks/account-delete-monitor
secrets: inherit
lambda:
uses: ./.github/workflows/reuse-build-and-push-lambda.yml
needs: [infrastructure]
with:
scope: account-delete-monitor
sentry-project: account-delete-monitor
s3-bucket-pattern: pocket-accountdeletemonitor-{0}-eventtracker
codedeploy-app-name-pattern: AccountDeleteMonitor-{0}-EventTracker-Lambda
codedeploy-group-name-pattern: AccountDeleteMonitor-{0}-EventTracker-Lambda
function-name-pattern: AccountDeleteMonitor-{0}-EventTracker-Function
secrets: inherit
sentry:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/reuse-sentry-release.yml
needs: [lambda]
with:
sentry-project: account-delete-monitor
sentry-environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
secrets: inherit