forked from adobe/aio-lib-java
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (83 loc) · 4.14 KB
/
maven-itest.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# Copyright 2017 Adobe. All rights reserved.
# This file is licensed to you under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. You may obtain a copy
# of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
# OF ANY KIND, either express or implied. See the License for the specific language
# governing permissions and limitations under the License.
#
name: Integration Tests
on:
pull_request:
branches:
- main
jobs:
stage_itest:
runs-on: ubuntu-latest
environment: aio_stage
strategy:
fail-fast: true
steps:
# Check out Git repository
- name: Checkout code
uses: actions/checkout@v3
# Set up environment with Java and Maven
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
cache: maven
# Build & Test
- name: Stage Integration Test with Maven
run: mvn -Daio_publish_url=$aio_publish_url -Daio_api_url=$aio_api_url -Daio_ims_url=$aio_ims_url -Daio_meta_scopes=$aio_meta_scopes -Daio_ims_org_id=$aio_ims_org_id -Daio_consumer_org_id=$aio_consumer_org_id -Daio_project_id=$aio_project_id -Daio_workspace_id=$aio_workspace_id -Daio_credential_id=$aio_credential_id -Daio_technical_account_id=$aio_technical_account_id -Daio_api_key=$aio_api_key -Daio_client_secret=$aio_client_secret -Daio_encoded_pkcs8=$aio_encoded_pkcs8 verify -Pitest
env:
aio_ims_url: ${{ secrets.aio_ims_url }}
aio_meta_scopes: ${{ secrets.aio_meta_scopes }}
aio_ims_org_id: ${{ secrets.aio_ims_org_id }}
aio_consumer_org_id: ${{ secrets.aio_consumer_org_id }}
aio_project_id: ${{ secrets.aio_project_id }}
aio_workspace_id: ${{ secrets.aio_workspace_id }}
aio_credential_id: ${{ secrets.aio_credential_id }}
aio_technical_account_id: ${{ secrets.aio_technical_account_id }}
aio_api_key: ${{ secrets.aio_api_key }}
aio_client_secret: ${{ secrets.aio_client_secret }}
aio_encoded_pkcs8: ${{ secrets.aio_encoded_pkcs8 }}
aio_api_url: ${{ secrets.aio_api_url }}
aio_publish_url: ${{ secrets.aio_publish_url }}
prod_itest:
runs-on: ubuntu-latest
environment: aio_prod
strategy:
fail-fast: true
steps:
# Check out Git repository
- name: Checkout code
uses: actions/checkout@v3
# Set up environment with Java and Maven
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
cache: maven
# Build & Test
- name: Prod Integration Test with Maven
run: mvn -Daio_publish_url=$aio_publish_url -Daio_api_url=$aio_api_url -Daio_ims_url=$aio_ims_url -Daio_meta_scopes=$aio_meta_scopes -Daio_ims_org_id=$aio_ims_org_id -Daio_consumer_org_id=$aio_consumer_org_id -Daio_project_id=$aio_project_id -Daio_workspace_id=$aio_workspace_id -Daio_credential_id=$aio_credential_id -Daio_technical_account_id=$aio_technical_account_id -Daio_api_key=$aio_api_key -Daio_client_secret=$aio_client_secret -Daio_encoded_pkcs8=$aio_encoded_pkcs8 verify -Pitest
env:
aio_ims_url: ${{ secrets.aio_ims_url }}
aio_meta_scopes: ${{ secrets.aio_meta_scopes }}
aio_ims_org_id: ${{ secrets.aio_ims_org_id }}
aio_consumer_org_id: ${{ secrets.aio_consumer_org_id }}
aio_project_id: ${{ secrets.aio_project_id }}
aio_workspace_id: ${{ secrets.aio_workspace_id }}
aio_credential_id: ${{ secrets.aio_credential_id }}
aio_technical_account_id: ${{ secrets.aio_technical_account_id }}
aio_api_key: ${{ secrets.aio_api_key }}
aio_client_secret: ${{ secrets.aio_client_secret }}
aio_encoded_pkcs8: ${{ secrets.aio_encoded_pkcs8 }}
aio_api_url: ${{ secrets.aio_api_url }}
aio_publish_url: ${{ secrets.aio_publish_url }}