Fix CI Tests #825
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: iOS Integration Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GPR_USER: ${{ secrets.GITHUB_ACTOR }} | |
jobs: | |
ios-tests: | |
name: iOS Tests | |
runs-on: macos-latest | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.2' | |
- name: Checkout project sources | |
uses: actions/checkout@v3 | |
- name: Set up Docker | |
run: brew install docker colima docker-compose | |
- name: Start Colima | |
run: colima start --vm-type=vz | |
- name: Start Docker containers | |
run: ./dev/up | |
- name: Wait for Services | |
run: sleep 5s # Give DB and Node services time to start | |
- name: Verify Running Containers | |
run: docker ps # Debugging: Ensure required services are running | |
# retries are added due to test failures with dependencies | |
- name: Run tests | |
run: script/run_tests.sh | |
- name: Stop local test server | |
run: docker-compose -p xmtp-ios -f dev/local/docker-compose.yml down |