Skip to content

Commit

Permalink
unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishonson committed Nov 25, 2023
1 parent 23d1a72 commit 6620c87
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/appium-tests.yml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ captures
.externalNativeBuild
.cxx
local.properties
xcuserdata
xcuserdata
/iosApp/iosApp.xcodeproj/xcshareddata/xcschemes/iosApp.xcscheme

0 comments on commit 6620c87

Please sign in to comment.