Skip to content

Commit 9949485

Browse files
committed
Move system library tests to tests workflow
1 parent e026311 commit 9949485

File tree

2 files changed

+51
-53
lines changed

2 files changed

+51
-53
lines changed

.github/workflows/system-libs.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,54 @@ jobs:
128128
php: [ "8.1", "8.2", "8.3", "8.4" ]
129129
arch: [ x64, x86 ]
130130
ts: [ ts, nts ]
131+
132+
test-system-libs:
133+
name: "System Library Tests"
134+
runs-on: "ubuntu-latest"
135+
env:
136+
PHP_VERSION: "8.3"
137+
LIBMONGOCRYPT_VERSION: "1.14"
138+
LIBMONGOC_VERSION: "2.0.1"
139+
SERVER_VERSION: "8.0"
140+
141+
steps:
142+
- name: "Checkout"
143+
uses: "actions/checkout@v4"
144+
with:
145+
submodules: true
146+
147+
- name: "Install libmongocrypt"
148+
uses: ./.github/actions/linux/build-libmongocrypt
149+
with:
150+
version: ${{ env.LIBMONGOCRYPT_VERSION }}
151+
152+
- name: "Build libmongoc"
153+
uses: ./.github/actions/linux/build-libmongoc
154+
with:
155+
version: ${{ env.LIBMONGOC_VERSION }}
156+
157+
- name: "Build Driver"
158+
uses: ./.github/actions/linux/build
159+
with:
160+
version: ${{ env.PHP_VERSION }}
161+
configureOpts: "--with-mongodb-system-libs=yes"
162+
163+
- name: "Check driver version"
164+
shell: bash
165+
run: make show-config
166+
167+
- uses: actions/setup-python@v5
168+
with:
169+
python-version: "3.13"
170+
171+
- name: Setup MongoDB
172+
id: setup-mongodb
173+
uses: ./tests/drivers-evergreen-tools
174+
with:
175+
version: ${{ ENV.SERVER_VERSION }}
176+
topology: "server"
177+
178+
- name: "Run Tests"
179+
run: TEST_PHP_ARGS="-q -x --show-diff -g FAIL,XFAIL,BORK,WARN,LEAK,SKIP" make test
180+
env:
181+
MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }}

0 commit comments

Comments
 (0)