Skip to content

chore: Adding Validation step for IaC with SAM #1498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 50 commits into from
Closed
Changes from 45 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e66095e
Setting up Kotlin environment. Converting test to Kotlin.
Oct 2, 2023
ea0b496
Deploying via SAM successfully.
Oct 2, 2023
615a095
Added Kotlin example.
Oct 3, 2023
5199105
Removing unused Gradle build file.
Oct 3, 2023
37020f3
Merge branch 'main' into main
scottgerring Oct 3, 2023
6386358
Adding SAM template so can be used as an existing project and Java ta…
Oct 4, 2023
19679da
Adding SAM template so can be used as an existing project
Oct 4, 2023
17c3a5e
Updating guidance to use SAM for build and deploy
Oct 4, 2023
1312c02
Restructuring separate Java and Kotlin examples.
Oct 4, 2023
18c7f48
Updating core examples readme to represent new structure for Java and…
Oct 4, 2023
d968f3c
Refactoring application code for efficiency, updating build to cover …
Oct 4, 2023
5ce71f7
Updating to fix trailing \n
Oct 4, 2023
35fbbac
Updating guidance to be more specific for examples
Oct 4, 2023
6ffa295
Merge branch 'main' into main
scottgerring Oct 5, 2023
d277c5c
Adopting new mechanism for specifying jvm target.
Oct 6, 2023
6c4646e
accommodating new project structure
Oct 6, 2023
6eecb90
Fixing link typo after refactoring
Oct 6, 2023
66a3dc2
Merge branch 'main' into main
scottgerring Oct 8, 2023
1431899
Setting up Kotlin environment. Converting test to Kotlin.
Oct 2, 2023
3396766
Deploying via SAM successfully.
Oct 2, 2023
baa0e3f
Added Kotlin example.
Oct 3, 2023
16380a8
Removing unused Gradle build file.
Oct 3, 2023
3f3f4e8
Adding SAM template so can be used as an existing project and Java ta…
Oct 4, 2023
9d70b57
Adding SAM template so can be used as an existing project
Oct 4, 2023
bcff275
Updating guidance to use SAM for build and deploy
Oct 4, 2023
84935c9
Restructuring separate Java and Kotlin examples.
Oct 4, 2023
bf6da0d
Updating core examples readme to represent new structure for Java and…
Oct 4, 2023
f67f59a
Refactoring application code for efficiency, updating build to cover …
Oct 4, 2023
f7288d5
Updating to fix trailing \n
Oct 4, 2023
f03b01b
Updating guidance to be more specific for examples
Oct 4, 2023
e523554
Adopting new mechanism for specifying jvm target.
Oct 6, 2023
a71e263
accommodating new project structure
Oct 6, 2023
51fc239
Fixing link typo after refactoring
Oct 6, 2023
6cef711
Flattening structure back to original to make merging easier for v2
Oct 13, 2023
2444ba4
Merge remote-tracking branch 'origin/main'
Oct 13, 2023
c24ee6d
Adding build for Kotlin Gradle
Oct 13, 2023
de19b56
Adding build for Kotlin Gradle - Restructuring Java examples to v1 ap…
Oct 13, 2023
6e23b26
Correcting paths
Oct 13, 2023
480dd8b
Adding SNAPSHOT support and local capability for Maven. Testing using…
Oct 13, 2023
7a8dc16
Reviewed and updated against PR comments.
Oct 20, 2023
de08cbc
Merge branch 'main' into main
scottgerring Oct 23, 2023
bf843a7
Merging with Terraform additions from main branch
Oct 23, 2023
9a154dd
Un-commenting examples
Oct 23, 2023
e3c1cda
Un-commenting examples
Oct 31, 2023
e8ddb45
Adding validation step for IaC SAM
Oct 31, 2023
ec17480
Adding Terraform for Java projects IaC validator and linter
Nov 1, 2023
7d11fac
Adding additional projects for SAM validation and matrix approach
Nov 1, 2023
960992a
Merge branch 'main' into main
scottgerring Nov 10, 2023
66327b1
Merge branch 'main' into main
jasoniharris Nov 15, 2023
7c959c4
Merge branch 'main' into main
jeromevdl Nov 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/pr_iac_lint_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate IaC

on:
pull_request:
branches:
- main
- v2
paths:
- 'examples/**'
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup java JDK 1.8
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
distribution: 'corretto'
java-version: 8
- name: Run SAM validator to check syntax of IaC templates
working-directory: examples/powertools-examples-core/sam
run: |
sam build
sam validate --lint