Merge pull request #123 from tayloraswift/upgrade-swift-collections #356
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: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
linux: | |
runs-on: ubuntu-22.04 | |
name: ${{ matrix.image }} | |
strategy: | |
matrix: | |
image: | |
- swift:5.9.2-amazonlinux2 | |
- swift:5.9.2-jammy | |
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: build and test | |
run: | | |
docker run -t --rm --network=mongonet \ | |
--name mongonet-environment \ | |
-v $PWD:/swift-mongodb \ | |
-w /swift-mongodb \ | |
${{ matrix.image }} \ | |
/bin/bash $(echo .github/pipeline) |