File tree 2 files changed +18
-5
lines changed
2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,28 @@ jobs:
17
17
- name : Checkout Code
18
18
uses : actions/checkout@v4
19
19
20
+ - name : Set up JDK 21
21
+ uses : actions/setup-java@v4
22
+ with :
23
+ java-version : ' 21'
24
+ distribution : ' corretto'
25
+ cache : maven
26
+
20
27
- name : Setup AWS SAM
21
28
uses : aws-actions/setup-sam@v2
22
29
with :
23
30
use-installer : true
24
31
25
- # Having SAM build inside container then removes all Maven/Java requirements
26
- # The image SAM pulls will build the lambda correctly
27
- - name : Build inside Docker containers
28
- run : sam build --use-container
32
+ - name : Setup AWS SAM
33
+ uses : aws-actions/setup-sam@v2
34
+ with :
35
+ use-installer : true
36
+
37
+ - name : SAM Build
38
+ run : sam build
39
+
40
+ - name : Validate SAM Template
41
+ run : sam validate --lint
29
42
30
43
31
44
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ To use the SAM CLI, you need the following tools.
48
48
If you have brew installed then
49
49
``` bash
50
50
brew install aws-sam-cli
51
- brew install corretto21
51
+ brew install corretto@21
52
52
brew install maven
53
53
```
54
54
You can’t perform that action at this time.
0 commit comments