fix(deps): update prisma monorepo to v6 (major) #8770
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: test-mongodb | |
on: | |
push: | |
paths: | |
- databases/mongodb/** | |
branches: | |
- latest | |
- dev | |
- patch-dev | |
pull_request: | |
paths: | |
- databases/mongodb/** | |
env: | |
CI: 1 | |
PRISMA_TELEMETRY_INFORMATION: 'prisma-examples test-mongodb.yaml' | |
jobs: | |
test: | |
defaults: | |
run: | |
working-directory: databases/mongodb | |
runs-on: ubuntu-latest | |
# Service containers to run with `container-job` | |
services: | |
# Label used to access the service container | |
mongodb: | |
# Docker Hub image | |
image: prismagraphql/mongo-single-replica:4.4.3-bionic | |
env: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: prisma | |
ports: | |
- 27017:27017 | |
env: | |
DATABASE_URL: mongodb://root:prisma@localhost:27017/prisma-mongo?authSource=admin&retryWrites=true&w=majority | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- run: npm install | |
- run: npx prisma generate | |
- run: npm run test |