-
Notifications
You must be signed in to change notification settings - Fork 19
68 lines (53 loc) · 2.69 KB
/
maven-verify.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
57
58
59
60
61
62
63
64
65
66
67
68
name: Maven Verify Pipeline
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Build-And-Verify:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9" ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install pre-commit cloudformation-cli cloudformation-cli-java-plugin
- name: Run pre-commit
run: pre-commit run --all-files
- name: Verify AWS::Kendra::Index
working-directory: aws-kendra-index
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean verify --no-transfer-progress
- name: Install AWS::Kendra::Index
working-directory: aws-kendra-index
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --no-transfer-progress
- name: Verify AWS::Kendra::DataSource
working-directory: aws-kendra-datasource
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean verify --no-transfer-progress
- name: Install AWS::Kendra::DataSource
working-directory: aws-kendra-datasource
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --no-transfer-progress
- name: Verify AWS::Kendra::Faq
working-directory: aws-kendra-faq
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean verify --no-transfer-progress
- name: Install AWS::Kendra::Faq
working-directory: aws-kendra-faq
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --no-transfer-progress
- name: Verify AWS::Kendra::FeaturedResultsSet
working-directory: aws-kendra-featuredresultsset
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean verify --no-transfer-progress
- name: Install AWS::Kendra::FeaturedResultsSet
working-directory: aws-kendra-featuredresultsset
run: mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --no-transfer-progress