Skip to content

Commit

Permalink
Fastrack temporary failure scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieobject committed Mar 2, 2024
1 parent 8d7cc92 commit 81b33b4
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,27 @@ jobs:
- name: Checkout project sources
uses: actions/checkout@v3

- name: Install docker
run: brew install docker docker-compose colima
# - name: Install docker
# run: brew install docker docker-compose colima

- name: Start colima
run: colima start
# - name: Start colima
# run: colima start

- name: Start Docker containers
run: dev/up
# - 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)"
echo "Running Test Suite...."
swift test -v
if [ $? -eq 0 ]; then
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo "Test Succeeded"
break
else
Expand All @@ -50,5 +52,5 @@ jobs:
fi
done
- name: Stop local test server
run: docker-compose -p xmtp-ios -f dev/local/docker-compose.yml down
# - name: Stop local test server
# run: docker-compose -p xmtp-ios -f dev/local/docker-compose.yml down

0 comments on commit 81b33b4

Please sign in to comment.