Skip to content

Commit 689295c

Browse files
committed
update e2e
1 parent 6c4ea9f commit 689295c

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/check-e2e.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
on:
2+
workflow_dispatch:
3+
4+
push:
5+
branches:
6+
- main
7+
paths: # add other modules when there are under e2e tests
8+
- 'powertools-e2e-tests/**'
9+
- 'powertools-batch/**'
10+
- 'powertools-core/**'
11+
- 'powertools-common/**'
12+
- 'powertools-idempotency/**'
13+
- 'powertools-large-message/**'
14+
- 'powertools-logging/**'
15+
- 'powertools-metrics/**'
16+
- 'powertools-parameters/**'
17+
- 'powertools-serialization/**'
18+
- 'powertools-tracing/**'
19+
- 'pom.xml'
20+
21+
name: E2E Tests
22+
run-name:
23+
24+
permissions:
25+
contents: read
26+
27+
jobs:
28+
e2e:
29+
name: End-to-end Tests (Java ${{ matrix.java }})
30+
runs-on: ubuntu-latest
31+
permissions:
32+
id-token: write
33+
environment: E2E
34+
strategy:
35+
max-parallel: 4
36+
matrix:
37+
java: [ 8, 11, 17, 21 ]
38+
steps:
39+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
40+
- name: Setup java
41+
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
42+
with:
43+
distribution: 'corretto'
44+
java-version: ${{ matrix.java }}
45+
cache: maven
46+
- name: Setup AWS credentials
47+
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
48+
with:
49+
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
50+
aws-region: us-east-1
51+
- name: Run e2e test with Maven
52+
run: mvn -DskipTests install --file pom.xml && mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml

0 commit comments

Comments
 (0)