Skip to content

Restore Test Phase

Restore Test Phase #16

Workflow file for this run

name: iOS Tests

Check failure on line 1 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
# temporary for manual trigger
#on:
# workflow_dispatch:
on:
push:
# branches:
# - main
# pull_request:
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPR_USER: ${{ secrets.GITHUB_ACTOR }}
jobs:
build:
runs-on: macos-latest
ios-tests:
name: iOS Tests
runs-on: macos-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Install docker
run: brew install docker docker-compose
- name: Start colima
run: colima start
- name: Start local test server
run: docker-compose -p xmtp -f dev/local/docker-compose.yml up -d
# - name: Test with xcodebuild
# run: xcodebuild test -scheme XMTP -destination "platform=iOS Simulator,name=iPhone 14"
- name: Build
run: swift build -v
- name: Run tests
run: swift test --vv
- name: Stop local test server
run: docker-compose -p xmtp -f dev/local/docker-compose.yml down