-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (43 loc) · 1.59 KB
/
list-api.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
name: List API
on:
# Only run the tests for this service when any of the following file paths change
pull_request:
paths:
- 'infrastructure/list-api/**'
- 'packages/**'
- 'servers/list-api/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/list-api.yml'
- '.github/workflows/reuse-*.yml'
jobs:
# Let's test the service against some real life and mocked docker services.
test-integrations:
# Only run this job on a pull request event
if: github.event_name == 'pull_request'
# Use our re-usable test integrations workflow which will use our docker compose file
uses: ./.github/workflows/reuse-test-integrations.yml
with:
# Only run the tests for our service
scope: 'list-api'
# Ensure the re-usable workflow is allowed to access the secrets
secrets: inherit
# Let's test the service against some real life and mocked docker services.
build-and-push-image:
uses: ./.github/workflows/reuse-build-and-push-image.yml
with:
scope: list-api
app-path: servers/list-api
app-port: 4005
sentry-project: list-api
docker-repo-name-short-hand: listapi
# Ensure the re-usable workflow is allowed to access the secrets
secrets: inherit
# It's infrastructure time, run the infrastructure update commands
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: list-api-cdk
stack-output-path: infrastructure/list-api/cdktf.out/stacks/list-api
# Ensure the re-usable workflow is allowed to access the secrets
secrets: inherit