Skip to content

Fastrack temporary failure scenario #68

Fastrack temporary failure scenario

Fastrack temporary failure scenario #68

Workflow file for this run

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
# macos-14 currently breaks colima
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Checkout project sources
uses: actions/checkout@v3
# - name: Install docker
# run: brew install docker docker-compose colima
# - name: Start colima
# run: colima start
# - name: Start Docker containers
# run: dev/up
# retries are added due to test failures with dependencies
- name: Run tests
run: |
retries=0
until [ $retries -ge 5 ]
do
(
echo "Running Test Suite - Attempt ($retries)"
if [ $retries -eq 1 ]; then
echo "Simulating failure for testing purposes..."
exit 1
fi
)
if [ $? -eq 0 ]; then
echo "Test Succeeded"
break
else
echo "Test Suite Failed. Retrying..."
((retries=retries+1))
fi
done
# - name: Stop local test server
# run: docker-compose -p xmtp-ios -f dev/local/docker-compose.yml down