Skip to content

Commit 7cb94ff

Browse files
committed
add github action for e2e
1 parent 42a3466 commit 7cb94ff

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/run-e2e-tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Run end-to-end tests
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [master, e2e-tests-github]
8+
paths: # add other modules when there are under e2e tests
9+
- 'powertools-e2e-tests/**'
10+
- 'powertools-core/**'
11+
- 'powertools-serialization/**'
12+
- 'powertools-logging/**'
13+
- 'powertools-tracing/**'
14+
- 'powertools-idempotency/**'
15+
- 'powertools-metrics/**'
16+
- 'pom.xml'
17+
- '.github/workflows/**'
18+
19+
jobs:
20+
e2e:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
max-parallel: 2
24+
matrix:
25+
java: [ 8, 11, 17 ]
26+
name: End-to-end tests ${{ matrix.java }}
27+
env:
28+
JAVA_VERSION: ${{ matrix.java }}
29+
AWS_DEFAULT_REGION: eu-west-1
30+
permissions:
31+
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
32+
contents: read
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Setup java
36+
uses: actions/setup-java@v2
37+
with:
38+
distribution: 'corretto'
39+
java-version: ${{ matrix.java }}
40+
cache: maven
41+
- name: Setup AWS credentials
42+
uses: aws-actions/configure-aws-credentials@v1.6.1
43+
with:
44+
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
45+
aws-region: ${{ env.AWS_DEFAULT_REGION }}
46+
- name: Run e2e test with Maven
47+
run: mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml

0 commit comments

Comments
 (0)