functional-test.yml 980 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Functional Tests
  2. on: [pull_request]
  3. jobs:
  4. test:
  5. env:
  6. CI: true
  7. _FORCE_LOGS: 1
  8. XCODE_VERSION: 13.4
  9. DEVICE_NAME: iPhone 11
  10. PLATFORM_VERSION: 15.5
  11. # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
  12. runs-on: macos-12
  13. steps:
  14. - uses: actions/checkout@v3
  15. - uses: actions/setup-node@v3
  16. with:
  17. node-version: lts/*
  18. - uses: maxim-lobanov/setup-xcode@v1
  19. with:
  20. xcode-version: "${{ env.XCODE_VERSION }}"
  21. - run: |
  22. npm install
  23. mkdir -p ./Resources/WebDriverAgent.bundle
  24. name: Install dev dependencies
  25. - run: |
  26. target_sim_id=$(xcrun simctl list devices available | grep "$DEVICE_NAME (" | cut -d "(" -f2 | cut -d ")" -f1)
  27. open -Fn "$(xcode-select -p)/Applications/Simulator.app"
  28. xcrun simctl bootstatus $target_sim_id -b
  29. name: Preboot Simulator
  30. - run: npm run e2e-test
  31. name: Run functional tests