Integration Tests #86
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
# | |
# 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 | |
on: | |
schedule: | |
# The `*` character is a special symbol in YAML and must be quoted. | |
# | |
# Scheduled job timing: | |
# * Runs every weekday at 11:37 AM PST / 12:37 PM PDT (during daylight saving time). | |
# * Avoids the start of the hour and other peak times to reduce runner availability issues. | |
- cron: '37 19 * * 1-5' | |
workflow_dispatch: | |
inputs: | |
id: | |
description: '(Optional) The identifier for the run.' | |
required: false | |
tags-mobile-property-id: | |
type: string | |
description: '(Optional) The tags mobile property ID to use for the test. A default is used if not set.' | |
required: false | |
default: '' | |
edge-location-hint: | |
type: choice | |
description: '(Optional) The Edge location hint to set before each test.' | |
required: false | |
default: 'None' | |
options: | |
- 'or2' | |
- 'va6' | |
- 'irl1' | |
- 'ind1' | |
- 'jpn3' | |
- 'sgp3' | |
- 'aus3' | |
- 'EmptyString' | |
- 'Invalid' | |
- 'None' | |
jobs: | |
setup-job: | |
runs-on: ubuntu-24.04 | |
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; | |
upstream-integration-test: | |
name: "Edge Network (server) integration test" | |
needs: setup-job | |
uses: adobe/aepsdk-commons/.github/workflows/[email protected] | |
with: | |
android-api-levels: '[29]' | |
command: make upstream-integration-test TAGS_MOBILE_PROPERTY_ID=${{ github.event.inputs.tags-mobile-property-id }} EDGE_LOCATION_HINT=${{ github.event.inputs.edge-location-hint }} | |
secrets: inherit | |