forked from prisma/prisma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(prisma): type discovery + fast builds + clean monorepo (prisma#…
…8497) Co-authored-by: Joël <[email protected]>
- Loading branch information
Showing
1,365 changed files
with
8,066 additions
and
9,266 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ on: | |
paths-ignore: | ||
# Any update here needs to be done for | ||
# - `pull_request` see below | ||
# - https://github.com/prisma/prisma/blob/master/src/.buildkite/test/buildkite-entry.sh | ||
# - https://github.com/prisma/prisma/blob/master/src/.buildkite/publish/buildkite-entry.sh | ||
# - https://github.com/prisma/prisma/blob/master/.buildkite/test/buildkite-entry.sh | ||
# - https://github.com/prisma/prisma/blob/master/.buildkite/publish/buildkite-entry.sh | ||
- '*.md' | ||
- '.vscode/**' | ||
- '.github/ISSUE_TEMPLATE/**' | ||
|
@@ -18,16 +18,16 @@ on: | |
- 'LICENSE' | ||
- '.github/CODEOWNERS' | ||
- 'src/.buildkite/**' | ||
- 'src/.dockerignore' | ||
- '.dockerignore' | ||
- '*.bench.ts' | ||
- 'src/scripts/ci/publish.ts' | ||
- 'src/graphs/**' | ||
- 'scripts/ci/publish.ts' | ||
- 'graphs/**' | ||
pull_request: | ||
paths-ignore: | ||
# Any update here needs to be done for | ||
# - `push`see before | ||
# - https://github.com/prisma/prisma/blob/master/src/.buildkite/test/buildkite-entry.sh | ||
# - https://github.com/prisma/prisma/blob/master/src/.buildkite/publish/buildkite-entry.sh | ||
# - https://github.com/prisma/prisma/blob/master/.buildkite/test/buildkite-entry.sh | ||
# - https://github.com/prisma/prisma/blob/master/.buildkite/publish/buildkite-entry.sh | ||
- '*.md' | ||
- '.vscode/**' | ||
- '.github/ISSUE_TEMPLATE/**' | ||
|
@@ -36,10 +36,10 @@ on: | |
- 'LICENSE' | ||
- '.github/CODEOWNERS' | ||
- 'src/.buildkite/**' | ||
- 'src/.dockerignore' | ||
- '.dockerignore' | ||
- '*.bench.ts' | ||
- 'src/scripts/ci/publish.ts' | ||
- 'src/graphs/**' | ||
- 'scripts/ci/publish.ts' | ||
- 'graphs/**' | ||
|
||
env: | ||
PRISMA_TELEMETRY_INFORMATION: 'prisma test.yml' | ||
|
@@ -128,7 +128,7 @@ jobs: | |
run: | | ||
echo "PRISMA_FORCE_NAPI=true" >> $GITHUB_ENV | ||
- run: docker-compose -f src/docker/docker-compose.yml up --detach postgres postgres_isolated mysql mysql_isolated mssql | ||
- run: docker-compose -f docker/docker-compose.yml up --detach postgres postgres_isolated mysql mysql_isolated mssql | ||
|
||
- name: Cache .pnpm-store # From https://pnpm.io/continuous-integration | ||
uses: actions/cache@v1 | ||
|
@@ -147,7 +147,7 @@ jobs: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- run: pnpm run test -- --testPathIgnorePatterns src/__tests__/types/types.test.ts --verbose | ||
working-directory: src/packages/client | ||
working-directory: packages/client | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
|
@@ -161,7 +161,7 @@ jobs: | |
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/client/src/__tests__/coverage/clover.xml | ||
files: ./packages/client/src/__tests__/coverage/clover.xml | ||
flags: client,${{ matrix.os }} | ||
name: client-${{ matrix.os }} | ||
|
||
|
@@ -200,15 +200,15 @@ jobs: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- run: pnpm run test src/__tests__/types/types.test.ts | ||
working-directory: src/packages/client | ||
working-directory: packages/client | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/client/src/__tests__/coverage/clover.xml | ||
files: ./packages/client/src/__tests__/coverage/clover.xml | ||
flags: client-types,${{ matrix.os }} | ||
name: client-types-${{ matrix.os }} | ||
|
||
|
@@ -242,7 +242,7 @@ jobs: | |
run: | | ||
echo "PRISMA_FORCE_NAPI=true" >> $GITHUB_ENV | ||
- run: docker-compose -f src/docker/docker-compose.yml up --detach ${{matrix.database}} | ||
- run: docker-compose -f docker/docker-compose.yml up --detach ${{matrix.database}} | ||
if: matrix.database != 'sqlite' | ||
|
||
- name: Cache .pnpm-store # From https://pnpm.io/continuous-integration | ||
|
@@ -263,14 +263,14 @@ jobs: | |
|
||
- run: pnpm i [email protected] --unsafe-perm --reporter=silent | ||
if: ${{ matrix.database == 'sqlite' }} | ||
working-directory: src/packages/integration-tests | ||
working-directory: packages/integration-tests | ||
|
||
# temp | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
|
||
- run: pnpm run jest integration/${{ matrix.database }} -- --maxConcurrency=8 | ||
working-directory: src/packages/integration-tests | ||
working-directory: packages/integration-tests | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
|
@@ -285,7 +285,7 @@ jobs: | |
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/integration-tests/src/__tests__/coverage/clover.xml | ||
files: ./packages/integration-tests/src/__tests__/coverage/clover.xml | ||
flags: integration-tests,${{ matrix.database }},${{ matrix.engine }} | ||
name: integration-tests-${{ matrix.database }}-${{ matrix.engine }} | ||
|
||
|
@@ -331,15 +331,15 @@ jobs: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- run: pnpm run test | ||
working-directory: src/packages/sdk | ||
working-directory: packages/sdk | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/sdk/src/__tests__/coverage/clover.xml | ||
files: ./packages/sdk/src/__tests__/coverage/clover.xml | ||
flags: sdk,${{ matrix.os }} | ||
name: sdk-${{ matrix.os }} | ||
|
||
|
@@ -363,7 +363,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: docker-compose -f src/docker/docker-compose.yml up --detach postgres mysql mssql | ||
- run: docker-compose -f docker/docker-compose.yml up --detach postgres mysql mssql | ||
|
||
- name: Set Engine Type | ||
if: ${{ matrix.engine == 'napi' }} | ||
|
@@ -387,10 +387,10 @@ jobs: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- run: pnpm i [email protected] --unsafe-perm --reporter=silent | ||
working-directory: src/packages/cli | ||
working-directory: packages/cli | ||
|
||
- run: pnpm run test | ||
working-directory: src/packages/migrate | ||
working-directory: packages/migrate | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
|
@@ -407,7 +407,7 @@ jobs: | |
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/migrate/src/__tests__/coverage/clover.xml | ||
files: ./packages/migrate/src/__tests__/coverage/clover.xml | ||
flags: migrate,${{ matrix.os }} | ||
name: migrate-${{ matrix.os }} | ||
|
||
|
@@ -453,15 +453,15 @@ jobs: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- run: pnpm run test | ||
working-directory: src/packages/cli | ||
working-directory: packages/cli | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/cli/src/__tests__/coverage/clover.xml | ||
files: ./packages/cli/src/__tests__/coverage/clover.xml | ||
flags: cli,${{ matrix.os }} | ||
name: cli-${{ matrix.os }} | ||
|
||
|
@@ -502,42 +502,42 @@ jobs: | |
|
||
- run: pnpm run test | ||
name: 'debug' | ||
working-directory: src/packages/debug | ||
working-directory: packages/debug | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/debug/src/__tests__/coverage/clover.xml | ||
files: ./packages/debug/src/__tests__/coverage/clover.xml | ||
flags: debug,${{ matrix.os }} | ||
name: debug-${{ matrix.os }} | ||
|
||
- run: pnpm run test | ||
name: 'engine-core' | ||
working-directory: src/packages/engine-core | ||
working-directory: packages/engine-core | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/engine-core/src/__tests__/coverage/clover.xml | ||
files: ./packages/engine-core/src/__tests__/coverage/clover.xml | ||
flags: engine-core,${{ matrix.os }} | ||
name: engine-core-${{ matrix.os }} | ||
|
||
- run: pnpm run test | ||
name: 'generator-helper' | ||
working-directory: src/packages/generator-helper | ||
working-directory: packages/generator-helper | ||
env: | ||
CI: true | ||
SKIP_GIT: true | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./src/packages/generator-helper/src/__tests__/coverage/clover.xml | ||
files: ./packages/generator-helper/src/__tests__/coverage/clover.xml | ||
flags: generator-helper,${{ matrix.os }} | ||
name: generator-helper-${{ matrix.os }} |
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
Oops, something went wrong.