forked from appium/WebDriverAgent
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge
- Loading branch information
Showing
169 changed files
with
4,150 additions
and
2,550 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,2 +1,3 @@ | ||
Resources | ||
coverage | ||
build |
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,29 @@ | ||
{ | ||
"extends": ["@appium/eslint-config-appium-ts"], | ||
"overrides": [ | ||
{ | ||
"files": "test/**/*.js", | ||
"rules": { | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Functional Tests | ||
|
||
on: [pull_request] | ||
|
||
|
||
jobs: | ||
test: | ||
env: | ||
CI: true | ||
_FORCE_LOGS: 1 | ||
XCODE_VERSION: 13.4 | ||
DEVICE_NAME: iPhone 11 | ||
PLATFORM_VERSION: 15.5 | ||
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "${{ env.XCODE_VERSION }}" | ||
- run: | | ||
npm install | ||
mkdir -p ./Resources/WebDriverAgent.bundle | ||
name: Install dev dependencies | ||
- run: | | ||
target_sim_id=$(xcrun simctl list devices available | grep "$DEVICE_NAME (" | cut -d "(" -f2 | cut -d ")" -f1) | ||
open -Fn "$(xcode-select -p)/Applications/Simulator.app" | ||
xcrun simctl bootstatus $target_sim_id -b | ||
name: Preboot Simulator | ||
- run: npm run e2e-test | ||
name: Run functional tests |
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,15 @@ | ||
name: Conventional Commits | ||
on: | ||
pull_request: | ||
|
||
|
||
jobs: | ||
lint: | ||
name: https://www.conventionalcommits.org | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: beemojs/conventional-pr-action@v2 | ||
with: | ||
config-preset: angular | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,33 @@ | ||
name: Unit Tests | ||
|
||
on: [pull_request, push] | ||
|
||
|
||
jobs: | ||
prepare_matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
versions: ${{ steps.generate-matrix.outputs.versions }} | ||
steps: | ||
- name: Select 3 most recent LTS versions of Node.js | ||
id: generate-matrix | ||
run: echo "versions=$(curl -s https://endoflife.date/api/nodejs.json | jq -c '[[.[] | select(.lts != false)][:3] | .[].cycle | tonumber]')" >> "$GITHUB_OUTPUT" | ||
|
||
test: | ||
needs: | ||
- prepare_matrix | ||
strategy: | ||
matrix: | ||
node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }} | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install --no-package-lock | ||
name: Install dev dependencies | ||
- run: npm run lint | ||
name: Run linter | ||
- run: npm run test | ||
name: Run unit tests |
Oops, something went wrong.