-
Notifications
You must be signed in to change notification settings - Fork 17
59 lines (51 loc) · 1.5 KB
/
verify.yaml
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
57
58
59
on:
workflow_call:
jobs:
lint:
name: Verify
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- aws-transfer-agreement
- aws-transfer-certificate
- aws-transfer-connector
- aws-transfer-profile
- aws-transfer-server
- aws-transfer-user
- aws-transfer-workflow
env:
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1
PIP_DISABLE_PIP_VERSION_CHECK: 1
defaults:
run:
working-directory: ${{ github.workspace }}/${{ matrix.package }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin # This is the only distribution cached on GitHub Hosted Runners
java-version: "17"
cache: maven
cache-dependency-path: ${{ github.workspace }}/${{ matrix.package }}/pom.xml
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install CloudFormation CLI Java plugin
run: pip install -U -r ${{ github.workspace }}/requirements.txt
- name: Run mvn verify
run: mvn --batch-mode --no-transfer-progress clean verify
- name: Show RPDK log
if: always()
run: |
if [ -f 'rpdk.log' ]; then
cat 'rpdk.log'
else
echo 'No RPDK log found'
fi