-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from adobe/staging
Staging -> Main - [v2.4.0 Release]
- Loading branch information
Showing
62 changed files
with
6,743 additions
and
1,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# | ||
# Copyright 2023 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. | ||
# | ||
|
||
# Action to execute upstream integration tests - Edge Network (Konductor) | ||
name: Integration Tests | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch to use when running integration tests' | ||
required: false | ||
default: 'main' | ||
id: | ||
description: 'Identifier for the run (optional)' | ||
required: false | ||
environment: | ||
type: choice | ||
description: 'Edge Network environment to test' | ||
required: true | ||
default: 'prod' | ||
options: | ||
- prod | ||
- pre-prod | ||
- int | ||
edge-location-hint: | ||
type: choice | ||
description: 'Edge location hint to set before each test (optional)' | ||
required: false | ||
default: '' | ||
options: | ||
- '' # Interpreted in the test code as no preset location hint; any non-valid location hint string is interpreted this way | ||
- 'or2' | ||
- 'va6' | ||
- 'irl1' | ||
- 'ind1' | ||
- 'jpn3' | ||
- 'sgp3' | ||
- 'aus3' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test-integration-upstream: | ||
# The type of runner that the job will run on | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
api-level: [29] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
||
- name: Job run identifier ${{ github.event.inputs.id }} | ||
run: | | ||
if [ -z "${{ github.event.inputs.id }}" ]; then \ | ||
echo No job run identifier was set. | ||
else | ||
echo 'Job run identifier is:' ${{ inputs.id }} | ||
fi; | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- name: Setup JAVA 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: run tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
force-avd-creation: false | ||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: make ci-upstream-integration-test EDGE_ENVIRONMENT=${{ github.event.inputs.environment }} EDGE_LOCATION_HINT=${{ github.event.inputs.edge-location-hint }} | ||
|
||
# Potential workflow solutions on job failure | ||
- name: On failure | ||
if: ${{ failure() }} | ||
run: | | ||
echo 'Job used branch: ' ${{ github.event.inputs.branch }}. Please make sure this is the branch to run off of. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,6 @@ fastlane/readme.md | |
|
||
# .Idea file | ||
code/.idea* | ||
|
||
# VS Code | ||
.vscode |
Oops, something went wrong.