-
Notifications
You must be signed in to change notification settings - Fork 180
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 #275 from AirtestProject/dev
v1.3
- Loading branch information
Showing
158 changed files
with
3,940 additions
and
3,672 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 |
---|---|---|
@@ -1,11 +1,29 @@ | ||
{ | ||
"extends": "@appium/eslint-config-appium", | ||
"extends": ["@appium/eslint-config-appium-ts"], | ||
"overrides": [ | ||
{ | ||
"files": "test/**/*.js", | ||
"rules": { | ||
"func-names": "off" | ||
"func-names": "off", | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
}, | ||
{ | ||
"files": "Scripts/**/*.js", | ||
"parserOptions": {"sourceType": "script"}, | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
}, | ||
{ | ||
"files": "ci-jobs/scripts/*.js", | ||
"parserOptions": {"sourceType": "script"}, | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
} | ||
] | ||
], | ||
"rules": { | ||
"require-await": "error" | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -2,53 +2,60 @@ name: Building WebDriverAgent | |
|
||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: ["Release"] | ||
types: | ||
- completed | ||
|
||
env: | ||
HOST: macos-13 | ||
XCODE_VERSION: 14.3.1 | ||
DESTINATION_SIM: platform=iOS Simulator,name=iPhone 14 Pro | ||
DESTINATION_SIM_tvOS: platform=tvOS Simulator,name=Apple TV | ||
|
||
jobs: | ||
build: | ||
host_machine: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
host: ${{ steps.macos_host.outputs.host }} | ||
steps: | ||
- run: | | ||
echo "host=${{ env.HOST }}" >> $GITHUB_OUTPUT | ||
id: macos_host | ||
for_real_devices: | ||
needs: [host_machine] | ||
name: Build WDA for real iOS and tvOS devices | ||
runs-on: macos-12 | ||
runs-on: ${{ needs.host_machine.outputs.host }} | ||
|
||
env: | ||
XCODE_VERSION: 14.1 | ||
ZIP_PKG_NAME_IOS: "WebDriverAgentRunner-Runner.zip" | ||
PKG_PATH_IOS: "appium_wda_ios" | ||
ZIP_PKG_NAME_TVOS: "WebDriverAgentRunner_tvOS-Runner.zip" | ||
PKG_PATH_TVOS: "appium_wda_tvos" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "${{ env.XCODE_VERSION }}" | ||
- name: Build iOS | ||
run: | | ||
xcodebuild clean build-for-testing \ | ||
-project WebDriverAgent.xcodeproj \ | ||
-derivedDataPath $PKG_PATH_IOS \ | ||
-scheme WebDriverAgentRunner \ | ||
-destination generic/platform=iOS \ | ||
CODE_SIGNING_ALLOWED=NO ARCHS=arm64 | ||
- name: Creating a zip of WebDriverAgentRunner-Runner.app for iOS | ||
run: | | ||
pushd appium_wda_ios/Build/Products/Debug-iphoneos | ||
zip -r $ZIP_PKG_NAME_IOS WebDriverAgentRunner-Runner.app | ||
popd | ||
mv $PKG_PATH_IOS/Build/Products/Debug-iphoneos/$ZIP_PKG_NAME_IOS ./ | ||
- name: Build tvOS | ||
run: | | ||
xcodebuild clean build-for-testing \ | ||
-project WebDriverAgent.xcodeproj \ | ||
-derivedDataPath $PKG_PATH_TVOS \ | ||
-scheme WebDriverAgentRunner_tvOS \ | ||
-destination generic/platform=tvOS \ | ||
CODE_SIGNING_ALLOWED=NO ARCHS=arm64 | ||
- name: Creating a zip of WebDriverAgentRunner-Runner.app for tvOS | ||
run: | | ||
pushd appium_wda_tvos/Build/Products/Debug-appletvos | ||
zip -r $ZIP_PKG_NAME_TVOS WebDriverAgentRunner_tvOS-Runner.app | ||
popd | ||
mv $PKG_PATH_TVOS/Build/Products/Debug-appletvos/$ZIP_PKG_NAME_TVOS ./ | ||
- name: Create a zip file of WebDriverAgentRunner-Runner.app for iOS | ||
run: sh $GITHUB_WORKSPACE/Scripts/ci/build-real.sh | ||
env: | ||
DERIVED_DATA_PATH: appium_wda_ios | ||
SCHEME: WebDriverAgentRunner | ||
DESTINATION: generic/platform=iOS | ||
WD: appium_wda_ios/Build/Products/Debug-iphoneos | ||
ZIP_PKG_NAME: "${{ env.ZIP_PKG_NAME_IOS }}" | ||
|
||
- name: Create a zip file of WebDriverAgentRunner-Runner.app for tvOS | ||
run: sh $GITHUB_WORKSPACE/Scripts/ci/build-real.sh | ||
env: | ||
DERIVED_DATA_PATH: appium_wda_tvos | ||
SCHEME: WebDriverAgentRunner_tvOS | ||
DESTINATION: generic/platform=tvOS | ||
WD: appium_wda_tvos/Build/Products/Debug-appletvos | ||
ZIP_PKG_NAME: "${{ env.ZIP_PKG_NAME_TVOS }}" | ||
|
||
- name: Upload the built generic app package for iOS | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -57,3 +64,32 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: "${{ env.ZIP_PKG_NAME_TVOS }}" | ||
|
||
for_simulator_devices: | ||
needs: [host_machine] | ||
name: Build WDA for ${{ matrix.target }} simulators | ||
runs-on: ${{ needs.host_machine.outputs.host }} | ||
|
||
strategy: | ||
matrix: | ||
# '' is for iOS | ||
target: ['', '_tvOS'] | ||
arch: [x86_64, arm64] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "${{ env.XCODE_VERSION }}" | ||
- name: Create a zip of WebDriverAgentRunner${{ matrix.target }} for simulator for ${{ matrix.arch }} | ||
run: | | ||
DESTINATION=$DESTINATION_SIM${{ matrix.target }} sh $GITHUB_WORKSPACE/Scripts/ci/build-sim.sh | ||
env: | ||
TARGET: ${{ matrix.target }} | ||
SCHEME: WebDriverAgentRunner${{ matrix.target }} | ||
ARCHS: ${{ matrix.arch }} | ||
ZIP_PKG_NAME: "WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip" | ||
- name: Upload the built generic app package for WebDriverAgentRunner${{ matrix.target }} with ${{ matrix.arch }} | ||
uses: actions/[email protected] | ||
with: | ||
path: "WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
require: ['@babel/register'], | ||
require: ['ts-node/register'], | ||
forbidOnly: Boolean(process.env.CI) | ||
}; |
Oops, something went wrong.