Update xmtplib Docker scripts #34
Workflow file for this run
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 Tests | |
# 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: | |
ios-tests: | |
name: iOS Tests | |
runs-on: macos-13 | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '14.3.1' | |
- name: Checkout project sources | |
uses: actions/checkout@v3 | |
- name: Install docker | |
run: brew install colima docker docker-compose | |
- name: Start colima | |
run: colima start | |
- name: Start Docker containers | |
run: dev/up | |
- name: Check Docker contaner | |
run: docker port xmtp-android-node-1 | |
# - 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 15" | |
# - 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 |