-
Notifications
You must be signed in to change notification settings - Fork 47
52 lines (50 loc) · 1.45 KB
/
pr-ci.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
# This workflow will install dependencies, run tests for both plugin and library components
name: CloudFormation CLI Java Plugin Pull Request CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
env:
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1
strategy:
matrix:
python: [3.7, 3.8, 3.9]
java: [8, 11]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Install python dependencies
run: |
pip install --upgrade 'attrs==19.2.0' wheel -r https://raw.githubusercontent.com/aws-cloudformation/cloudformation-cli/master/requirements.txt
- name: Install cloudformation-cli-java-plugin
run: |
pip install .
- name: Run pre-commit, twine checks for cloudformation-cli-java-plugin
run: |
pre-commit run --all-files
python setup.py sdist bdist_wheel
twine check ./dist/*
- name: Verify java package
run:
mvn verify
- name: Install java package
run:
mvn install
- name: Integration standard e2e
run:
./e2e_test.sh 1
- name: Integration guided e2e
run:
./e2e_test.sh 2