Adopt swift testing #26
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: tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
linux: | |
runs-on: ubuntu-24.04 | |
name: Linux | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up mock deployments | |
run: | | |
docker compose -f .github/mongonet/docker-compose.yml up -d | |
- name: Initialize replica set | |
run: | | |
timeout 60s bash -c \ | |
'until docker exec -t mongonet-mongo-0-1 /bin/mongosh --file /create-replica-set.js; do sleep 1; done' | |
- name: Run pipeline | |
run: | | |
docker run -t --rm --network=mongonet \ | |
--name mongonet-environment \ | |
--user root \ | |
-v $PWD:/swift-mongodb \ | |
-w /swift-mongodb \ | |
swift:6.0-noble \ | |
/bin/bash Scripts/TestAll | |
macos: | |
runs-on: macos-15 | |
name: macOS | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build debug | |
run: | | |
swift --version | |
swift build |