Skip to content

Commit 5318196

Browse files
committed
temp: update github action for test
1 parent d315b5a commit 5318196

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

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

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,39 @@ on:
2323
- 'pom.xml'
2424
- '.github/workflows/**'
2525

26+
permissions:
27+
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
28+
contents: read
29+
2630
jobs:
2731
e2e:
2832
runs-on: ubuntu-latest
2933
env:
30-
JAVA_VERSION: ${{ matrix.java }}
34+
# JAVA_VERSION: ${{ matrix.java }}
3135
AWS_REGION: eu-west-1
32-
permissions:
33-
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
34-
contents: read
35-
strategy:
36-
max-parallel: 2
37-
matrix:
38-
java: [ 8, 11 ]
39-
name: End-to-end tests ${{ matrix.java }}
36+
# strategy:
37+
# max-parallel: 2
38+
# matrix:
39+
# java: [ 8, 11 ]
40+
name: End-to-end tests #${{ matrix.java }}
4041
steps:
41-
- uses: actions/checkout@v3
42-
- name: Setup java
43-
uses: actions/setup-java@v3
44-
with:
45-
distribution: 'corretto'
46-
java-version: ${{ matrix.java }}
47-
cache: maven
42+
- name: Clone the repository
43+
uses: actions/checkout@v3
44+
4845
- name: Setup AWS credentials
4946
uses: aws-actions/configure-aws-credentials@master
5047
with:
5148
role-to-assume: arn:aws:iam::979050318125:role/GitHubActionWithOIDC
52-
role-session-name: AWSSession
49+
role-session-name: awssession
5350
aws-region: ${{ env.AWS_REGION }}
54-
- name: Run e2e test with Maven
55-
run: mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml
51+
52+
- name: Print assumed role
53+
run: aws sts get-caller-identity
54+
# - name: Setup java
55+
# uses: actions/setup-java@v3
56+
# with:
57+
# distribution: 'corretto'
58+
# java-version: ${{ matrix.java }}
59+
# cache: maven
60+
# - name: Run e2e test with Maven
61+
# run: mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml

0 commit comments

Comments
 (0)