-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just Build Phase for Now Fix Broken Test Restore Test Phase Debug Xcode Select Version Restore Remaining Workflow Update libxmtp-swift version to 0.4.2-beta4 Update xmtplib Docker scripts Update macOS Version Run against latest Xcode Colima Debug Fix broken test Increased Timeout for Waiters Cleanup Workflow and Compose Additional workflow cleanup
- Loading branch information
1 parent
880ec58
commit d52766b
Showing
10 changed files
with
111 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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: '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 | ||
|
||
# - name: Build | ||
# run: swift build -v | ||
|
||
- name: Run tests | ||
run: swift test --vv | ||
|
||
- name: Stop local test server | ||
run: docker-compose -p xmtp-ios -f dev/local/docker-compose.yml down |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -eou pipefail | ||
|
||
docker-compose -f dev/local/docker-compose.yml -p "xmtp-ios" "$@" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
version: "3.8" | ||
services: | ||
wakunode: | ||
image: xmtp/node-go | ||
node: | ||
image: xmtp/node-go:latest | ||
platform: linux/amd64 | ||
environment: | ||
- GOWAKU-NODEKEY=8a30dcb604b0b53627a5adc054dbf434b446628d4bd1eccc681d223f0550ce67 | ||
command: | ||
- --store.enable | ||
- --store.db-connection-string=postgres://postgres:xmtp@db:5432/postgres?sslmode=disable | ||
- --store.reader-db-connection-string=postgres://postgres:xmtp@db:5432/postgres?sslmode=disable | ||
- --mls-store.db-connection-string=postgres://postgres:xmtp@mlsdb:5432/postgres?sslmode=disable | ||
- --mls-validation.grpc-address=validation:50051 | ||
- --api.enable-mls | ||
- --wait-for-db=30s | ||
- --api.authn.enable | ||
ports: | ||
- 9001:9001 | ||
- 5555:5555 # http message API | ||
- 5556:5556 # grpc message API | ||
- 5555:5555 | ||
- 5556:5556 | ||
depends_on: | ||
- db | ||
healthcheck: | ||
test: [ "CMD", "lsof", "-i", ":5556" ] | ||
interval: 3s | ||
timeout: 10s | ||
retries: 5 | ||
|
||
validation: | ||
image: ghcr.io/xmtp/mls-validation-service:main | ||
platform: linux/amd64 | ||
|
||
db: | ||
image: postgres:13 | ||
environment: | ||
POSTGRES_PASSWORD: xmtp | ||
|
||
mlsdb: | ||
image: postgres:13 | ||
environment: | ||
POSTGRES_PASSWORD: xmtp |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -eou pipefail | ||
script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
|
||
"${script_dir}"/compose pull | ||
"${script_dir}"/compose up -d --build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -eou pipefail | ||
|
||
if [[ "${OSTYPE}" == "darwin"* ]]; then | ||
if ! which buf &>/dev/null; then brew install buf; fi | ||
if ! which shellcheck &>/dev/null; then brew install shellcheck; fi | ||
if ! which markdownlint &>/dev/null; then brew install markdownlint-cli; fi | ||
if ! java -version &>/dev/null; then | ||
brew install java | ||
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ | ||
/Library/Java/JavaVirtualMachines/ | ||
fi | ||
if ! kotlinc -version &>/dev/null; then brew install kotlin; fi | ||
fi | ||
|
||
rustup update | ||
|
||
dev/local/up |