-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (51 loc) · 1.83 KB
/
pr-ci.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven for AWS Organizations resources
on:
push:
branches: [ master ]
pull_request:
merge_group:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.7
- name: Install Python packages
run: pip install pre-commit cloudformation-cli cloudformation-cli-java-plugin
- name: Run pre-commit
run: pre-commit run --all-files
- name: Verify AWS::Organizations::Account
run: |
cd "${GITHUB_WORKSPACE}/aws-organizations-account"
mvn clean verify --no-transfer-progress
cat rpdk.log
- name: Verify AWS::Organizations::Organization
run: |
cd "${GITHUB_WORKSPACE}/aws-organizations-organization"
mvn clean verify --no-transfer-progress
cat rpdk.log
- name: Verify AWS::Organizations::OrganizationalUnit
run: |
cd "${GITHUB_WORKSPACE}/aws-organizations-organizationalunit"
mvn clean verify --no-transfer-progress
cat rpdk.log
- name: Verify AWS::Organizations::Policy
run: |
cd "${GITHUB_WORKSPACE}/aws-organizations-policy"
mvn clean verify --no-transfer-progress
cat rpdk.log
- name: Verify AWS::Organizations::ResourcePolicy
run: |
cd "${GITHUB_WORKSPACE}/aws-organizations-resourcepolicy"
mvn clean verify --no-transfer-progress
cat rpdk.log