-
Notifications
You must be signed in to change notification settings - Fork 4
79 lines (67 loc) · 2.17 KB
/
qa.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: QA workflow
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment where tests will be run'
required: true
type: environment
testSuite:
description: 'Choose the test suite to run'
required: false
default: NrtTest
type: string
defaults:
run:
shell: bash
permissions:
id-token: write
contents: read
jobs:
inputs:
runs-on: ubuntu-22.04
environment: ${{ inputs.environment }}
steps:
- name: Print Inputs
id: print_inputs
run: |
echo "- environment: \`${{ inputs.environment }}\`" >> $GITHUB_STEP_SUMMARY
echo "- branch name: \`${{ github.ref_name }}\`" >> $GITHUB_STEP_SUMMARY
echo "- testSuite: \`${{ inputs.testSuite }}\`" >> $GITHUB_STEP_SUMMARY
run_test:
name: Run Cucumber Test Suite
runs-on: ubuntu-22.04
environment: ${{ inputs.environment }}
env:
ENVIRONMENT: ${{ inputs.environment }}
ST_VERBOSE_MODE: ${{ vars.ST_VERBOSE_MODE }}
steps:
- name: Debug AWS Role
run: |
echo "Role ARN length: ${#ECS_IAM_ROLE_ARN}"
env:
ECS_IAM_ROLE_ARN: ${{ secrets.ECS_IAM_ROLE_ARN }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.ECS_IAM_ROLE_ARN }}
role-session-name: pn-b2b-client-${{ github.job }}-${{ github.run_id }}
aws-region: eu-south-1
- name: Set up Maven
uses: s4u/setup-maven-action@6d44c18d67d9e1549907b8815efa5e4dada1801b # v1.12.0
with:
java-version: 17
maven-version: 3.9.8
- name: Clone the pn-b2b-client repo
id: clone_pn-b2b-client
uses: actions/checkout@v2
with:
ref: ${{ github.ref_name }} # Branch name to clone
fetch-depth: 1 # Clone only the last commit
- name: Run QA tests
id: run_qa_tests
shell: bash
run: |
set -uo pipefail
echo "Running tests..."
cd ./pn-b2b-client/interop-qa-tests && mvn -Dtest=it.pagopa.pn.interop.cucumber.InteropTracingTest clean verify