Bump com.codeborne:selenide-appium from 7.7.0 to 7.7.1 #152
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
name: Run tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Run checks and unit tests | |
run: ./gradlew testClasses --no-daemon --console=plain -i | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-report-unit | |
path: build/reports/ | |
run-android-tests-job: | |
runs-on: macOS-11 | |
env: | |
APPIUM_TEST_SERVER_PORT: 4723 | |
APPIUM_TEST_SERVER_HOST: 127.0.0.1 | |
APPIUM_STARTUP_TIMEOUT_SEC: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Install Haxm | |
run: brew install --cask intel-haxm | |
- name: Install Appium | |
run: | | |
npm install -g appium@next | |
npm install -g appium-doctor | |
- name: Start Appium server | |
run: | | |
cwd=$(pwd) | |
pushd "$cwd" | |
cd ~ | |
appium driver install uiautomator2 | |
appium-doctor | |
nohup appium \ | |
--base-path /wd/hub \ | |
--relaxed-security \ | |
2>&1 > "$cwd/appium.log" & | |
popd | |
- name: Wait for Appium server startup | |
run: | | |
seconds_started=$(date +%s) | |
while ! nc -z $APPIUM_TEST_SERVER_HOST $APPIUM_TEST_SERVER_PORT; do | |
sleep 0.1 | |
seconds_elapsed=$(( $(date +%s) - seconds_started )) | |
if [[ $seconds_elapsed -gt $APPIUM_STARTUP_TIMEOUT_SEC ]]; then | |
echo "Appium server was unable to start within $APPIUM_STARTUP_TIMEOUT_SEC seconds timeout" | |
exit 1 | |
fi | |
done | |
- name: Run tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 28 | |
profile: pixel_3_xl | |
disable-animations: true | |
emulator-options: -no-snapshot -no-window -no-boot-anim -camera-back emulated -camera-front emulated -gpu swiftshader_indirect | |
script: ./gradlew android --info | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-report-android | |
path: | | |
build/reports/ | |
appium.log | |
auto-merge-dependabot: | |
name: 🤖 Auto merge dependabot PR | |
timeout-minutes: 10 | |
needs: [ run-unit-tests, run-android-tests-job ] | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: 🤖 Merge PR from dependabot | |
uses: fastify/[email protected] | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
target: minor | |
merge-method: rebase |