From 6620c87abb44274f08ed1d1457ac992fbfbb2949 Mon Sep 17 00:00:00 2001 From: Nicholas Christensen Date: Sat, 25 Nov 2023 17:31:48 -0600 Subject: [PATCH] unit tests --- .github/workflows/appium-tests.yml | 45 ++++++++++++++++++++++++++++++ .github/workflows/unit-tests.yml | 22 +++++++++++++++ .gitignore | 3 +- 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/appium-tests.yml create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/appium-tests.yml b/.github/workflows/appium-tests.yml new file mode 100644 index 0000000..a9ce7ab --- /dev/null +++ b/.github/workflows/appium-tests.yml @@ -0,0 +1,45 @@ +name: iOS Appium Tests + +on: [push, pull_request] + +jobs: + ios-test: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install Appium + run: npm install -g appium + + - name: Install Appium Doctor + run: npm install -g appium-doctor + + - name: Check Appium configuration + run: appium-doctor --ios + + - name: Install Carthage + run: brew install carthage + + # Additional steps for configuring WebDriverAgent + + # Install additional dependencies or tools you might need + + - name: Start Appium Server + run: appium & + + - name: Run iOS UI tests + run: # Add command to run your iOS tests here. E.g., a script to start Appium tests. + + # Optional: Steps to upload artifacts like test reports or screenshots diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..1a6ace3 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,22 @@ +name: Unit Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Run unit tests + run: ./gradlew test diff --git a/.gitignore b/.gitignore index e510fa9..52be851 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ captures .externalNativeBuild .cxx local.properties -xcuserdata \ No newline at end of file +xcuserdata +/iosApp/iosApp.xcodeproj/xcshareddata/xcschemes/iosApp.xcscheme