Skip to content

Commit

Permalink
ci: switch engine type for both cli and client for relavant tests (#8782
Browse files Browse the repository at this point in the history
)

Co-authored-by: Joël Galeran <Jolg42@users.noreply.github.com>
  • Loading branch information
williamluke4 and Jolg42 committed Aug 18, 2021
1 parent f7b75ca commit cb00007
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions .github/workflows/test.yml
Expand Up @@ -117,16 +117,20 @@ jobs:
strategy:
fail-fast: false
matrix:
engineType: ['library', 'binary']
queryEngine: ['library', 'binary']
os: [ubuntu-20.04] # macos-latest, windows-latest
node: [12]

steps:
- uses: actions/checkout@v2

- name: Set Engine Type
- name: Set CLI Engine Type
run: |
echo "PRISMA_CLI_QUERY_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Set Client Engine Type
run: |
echo "PRISMA_CLIENT_ENGINE_TYPE={{ matrix.engine }}" >> $GITHUB_ENV
echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- run: docker-compose -f docker/docker-compose.yml up --detach postgres postgres_isolated mysql mysql_isolated mssql

Expand Down Expand Up @@ -225,7 +229,7 @@ jobs:
strategy:
fail-fast: false
matrix:
engineType: ['library', 'binary']
queryEngine: ['library', 'binary']
database:
- sqlite
- postgres
Expand All @@ -237,9 +241,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set Engine Type
- name: Set CLI Engine Type
run: |
echo "PRISMA_CLI_QUERY_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Set Client Engine Type
run: |
echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.engine }}" >> $GITHUB_ENV
echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- run: docker-compose -f docker/docker-compose.yml up --detach ${{matrix.database}}
if: matrix.database != 'sqlite'
Expand Down Expand Up @@ -301,7 +309,7 @@ jobs:
strategy:
fail-fast: false
matrix:
cliQueryEngine: ['library', 'binary']
queryEngine: ['library', 'binary']
os: [ubuntu-20.04] # macos-latest, windows-latest
node: [12]

Expand All @@ -310,7 +318,11 @@ jobs:

- name: Set CLI Engine Type
run: |
echo "PRISMA_CLI_QUERY_ENGINE_TYPE={{ matrix.cliQueryEngine }}" >> $GITHUB_ENV
echo "PRISMA_CLI_QUERY_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Set Client Engine Type
run: |
echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Cache .pnpm-store # From https://pnpm.io/continuous-integration
uses: actions/cache@v1
Expand Down Expand Up @@ -354,7 +366,7 @@ jobs:
strategy:
fail-fast: false
matrix:
cliQueryEngine: ['library', 'binary']
queryEngine: ['library', 'binary']
os: [ubuntu-20.04] # macos-latest, windows-latest
node: [12]

Expand All @@ -365,7 +377,11 @@ jobs:

- name: Set CLI Engine Type
run: |
echo "PRISMA_CLI_QUERY_ENGINE_TYPE={{ matrix.cliQueryEngine }}" >> $GITHUB_ENV
echo "PRISMA_CLI_QUERY_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Set Client Engine Type
run: |
echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Cache .pnpm-store # From https://pnpm.io/continuous-integration
uses: actions/cache@v1
Expand Down Expand Up @@ -421,7 +437,7 @@ jobs:
strategy:
fail-fast: false
matrix:
cliQueryEngine: ['library', 'binary']
queryEngine: ['library', 'binary']
os: [ubuntu-20.04] # macos-latest, windows-latest
node: [12]

Expand All @@ -430,7 +446,11 @@ jobs:

- name: Set CLI Engine Type
run: |
echo "PRISMA_CLI_QUERY_ENGINE_TYPE={{ matrix.cliQueryEngine }}" >> $GITHUB_ENV
echo "PRISMA_CLI_QUERY_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Set Client Engine Type
run: |
echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.queryEngine }}" >> $GITHUB_ENV
- name: Cache .pnpm-store # From https://pnpm.io/continuous-integration
uses: actions/cache@v1
Expand Down

0 comments on commit cb00007

Please sign in to comment.