Skip to content

feat(generator): warn on prisma version mismatch #888

feat(generator): warn on prisma version mismatch

feat(generator): warn on prisma version mismatch #888

Workflow file for this run

name: e2e test all
on: pull_request
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
go:
- '.github/workflows/**/*.yml'
- '**/*.go'
- '**/*.gotpl'
- '**/*.mod'
- '**/*.sum'
- '**/*.work'
- uses: actions/setup-go@v4
with:
go-version: '1.19'
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache
restore-keys: ${{ runner.os }}-go-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: deps
run: go mod download
- name: generate
if: steps.changes.outputs.go == 'true'
run: |
cd test/e2e/
go generate -tags e2e ./...
# env:
# DATA_PROXY_DATABASE_URL: ${{ secrets.DATA_PROXY_DATABASE_URL }}
- name: test
if: steps.changes.outputs.go == 'true'
run: |
cd test/e2e/
go test ./... -run '^TestE2E.*$' -tags e2e -v
env:
# DATA_PROXY_DATABASE_URL: ${{ secrets.DATA_PROXY_DATABASE_URL }}
PRISMA_CLIENT_GO_LOG: info