Skip to content

git workflows

git workflows #14

Workflow file for this run

name: E2E Tests
on:
push:
branches:
- main
jobs:
test:
runs-on: macos-13 # Run on the macOS Ventura for iOS testing
steps:
- uses: actions/checkout@v2
name: Check out the code
- name: Install dependencies
run: npm ci # Install dependencies using 'npm ci' for CI/CD
- name: Install Appium and Drivers
run: |
npm install -g appium
appium driver install xcuitest
- name: Check Appium server status
run: |
appium -v
- name: Check Xcode Version
run: xcodebuild -version
- name: Verify the Xcode environment
run: xcode-select -p
- name: List Available Simulators/Devices
run: xcrun simctl list devices
- name: Start iOS Simulator
run: |
xcrun simctl boot "iPhone SE (3rd generation)" "iOS 17.2" || echo "Simulator already booted"
sleep 10
xcrun simctl list devices
- name: Start Appium server
run: appium --port 4723 --log-level debug > appium.log 2>&1 &
- name: Wait for Appium server to start
run: sleep 5
- name: Display Appium log
run: cat appium.log
- name: Check if port 4723 is in use
run: lsof -i :4723 || echo "Port 4723 is free"
- name: Check Appium Server
run: curl http://127.0.0.1:4723/status
- name: Run tests
env:
LINKEDIN_USERNAME: ${{ secrets.LINKEDIN_USERNAME }}
LINKEDIN_PASSWORD: ${{ secrets.LINKEDIN_PASSWORD }}
run: npm test # Run test script defined in package.json