Skip to content

Update swift-integration.yml to use specified Yorkie server for integ… #503

Update swift-integration.yml to use specified Yorkie server for integ…

Update swift-integration.yml to use specified Yorkie server for integ… #503

name: Integration tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
env:
# yorkie server v0.4.31
YORKIE_RB_URL: "https://raw.githubusercontent.com/Homebrew/homebrew-core/880510a1dad7e32b2699c32a55706955981bdcca/Formula/y/yorkie.rb"
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Update Brew
run: brew update
- name: Setup yorkie server
run: |
curl -O ${{ env.YORKOE_RB_URL }}
brew uninstall yorkie
brew install "yorkie.rb"
- name: Run yorkie server
run: yorkie server &
- name: Run tests
run: swift test --enable-code-coverage -v --filter YorkieIntegrationTests