-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.13 KB
/
build.yml
File metadata and controls
48 lines (37 loc) · 1.13 KB
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
name: Build and Synth CDK Stack
on:
pull_request:
branches: [ "main" ]
permissions:
contents: read # This is required for actions/checkout
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
# Use AWS Java to build
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: maven
- name: Install the latest AWS CDK
run: |
npm install -g aws-cdk
echo "Node Version: $(node -v)"
echo "CDK Version: $(cdk version)"
- name: Build top level project which will have lambda jar ready for CDK build
run: >
mvn install -DskipTests
--no-transfer-progress --quiet
- name: Synth CDK Stack
working-directory: ./cdk
env:
ONLY_TAG_INFECTED: true
VALIDATION_BUCKET: fake-validation-bucket
run: >
cdk synth --require-approval=never --ci=true
--context bucketNames="fake-validation-bucket,fake-bucket-1,fake-bucket-2"
--context addBucketPolicy="true"