Skip to content

Commit

Permalink
Merge pull request drizzle-team#1004 from drizzle-team/disable-ps-tes…
Browse files Browse the repository at this point in the history
…ts-on-forks
  • Loading branch information
dankochetov authored Aug 9, 2023
2 parents 5b01a4f + 28dcc4a commit dec18af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release-feature-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches-ignore:
- main
pull_request: {}
pull_request_target: {}

jobs:
release:
Expand Down Expand Up @@ -88,10 +89,13 @@ jobs:
PLANETSCALE_CONNECTION_STRING: ${{ secrets.PLANETSCALE_CONNECTION_STRING }}
LIBSQL_URL: file:local.db
run: |
if [[ ${{ github.event_name }} != "push" && "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
export SKIP_PLANETSCALE_TESTS=1
fi
if [[ "${{ matrix.package }}" == "drizzle-orm" ]]; then
pnpm test --filter ${{ matrix.package }} --filter integration-tests
else
pnpm test --filter ${{ matrix.package }}
pnpm test --filter ${{ matrix.package }}
fi
- name: Publish
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig({
test: {
include: ['tests/relational/**/*.test.ts'],
exclude: [
// 'tests/relational/mysql.planetscale.test.ts',
...(process.env.SKIP_PLANETSCALE_TESTS ? ['tests/relational/mysql.planetscale.test.ts'] : []),
'tests/relational/vercel.test.ts',
],
typecheck: {
Expand Down

0 comments on commit dec18af

Please sign in to comment.