Skip to content

Commit 03913ca

Browse files
committed
DRIVER_ADAPTERS_BRANCH=driver-adapters-migration see if this works
1 parent cba8e8f commit 03913ca

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/query-engine-driver-adapters.yml

+8
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ jobs:
7272
username: ${{ secrets.DOCKERHUB_USERNAME }}
7373
password: ${{ secrets.DOCKERHUB_TOKEN }}
7474

75+
- name: Extract Branch Name
76+
id: extract-branch
77+
run: echo "::set-output name=branch::$(git show -s --format=%s | grep -o "DRIVER_ADAPTERS_BRANCH=[^ ]*" | cut -f2 -d=)"
78+
79+
- name: Set Environment Variable
80+
if: steps.extract-branch.outputs.branch != ''
81+
run: echo "DRIVER_ADAPTERS_BRANCH=${{ steps.extract-branch.outputs.branch }}" >> $GITHUB_ENV
82+
7583
- run: make ${{ matrix.adapter.setup_task }}
7684

7785
- uses: dtolnay/rust-toolchain@stable

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG_PATH = ./query-engine/connector-test-kit-rs/test-configs
22
CONFIG_FILE = .test_config
33
SCHEMA_EXAMPLES_PATH = ./query-engine/example_schemas
44
DEV_SCHEMA_FILE = dev_datamodel.prisma
5+
DRIVER_ADAPTERS_BRANCH ?= main
56

67
LIBRARY_EXT := $(shell \
78
case "$$(uname -s)" in \
@@ -286,7 +287,7 @@ ensure-prisma-present:
286287
echo "⚠️ ../prisma diverges from prisma/prisma main branch. Test results might diverge from those in CI ⚠️ "; \
287288
fi \
288289
else \
289-
git clone --depth=1 https://github.com/prisma/prisma.git "../prisma" && echo "Prisma repository has been cloned to ../prisma"; \
290+
git clone --depth=1 https://github.com/prisma/prisma.git --branch=$(DRIVER_ADAPTERS_BRANCH) "../prisma" && echo "Prisma repository has been cloned to ../prisma"; \
290291
fi;
291292

292293
# Quick schema validation of whatever you have in the dev_datamodel.prisma file.

0 commit comments

Comments
 (0)