-
Notifications
You must be signed in to change notification settings - Fork 49
45 lines (45 loc) · 1.16 KB
/
acceptance-test-run.yml
File metadata and controls
45 lines (45 loc) · 1.16 KB
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
---
name: Acceptenace Test Run
on:
workflow_call:
inputs:
tests:
required: true
type: string
deletion-policy:
required: true
type: string # delete/retain
permissions:
id-token: write
contents: read
defaults:
run:
shell: bash
jobs:
run:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::068189904525:role/github-openid-connect
role-session-name: github-actions-aws-in-action-code3
role-duration-seconds: 21600
aws-region: us-east-1
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: '8'
cache: maven
- working-directory: test
env:
DELETION_POLICY: ${{ inputs.deletion-policy }}
TEMPLATE_DIR: ../
run: mvn -B -q surefire-report:report -Dtest=${{ inputs.tests }} -Dsurefire.reportNameSuffix=us-east-1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: acceptance-test-run-us-east-1
path: |
test/target/surefire-reports/
test/target/site/