Skip to content

Commit

Permalink
test: remove codesandbox (#4775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 authored Apr 4, 2024
1 parent 22d8b7b commit e36408e
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 4,215 deletions.
11 changes: 0 additions & 11 deletions .github/scripts/check-folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ async function main() {
'package.json', // package.json at root
'generic/basic', // generic/basic doesn't use Github action matrix feature which we parse to find out the differences
'generic/basic-m1', // generic/basic-m1 doesn't use Github action matrix feature which we parse to find out the differences
// Disabled for now, as it's failing with
// Our Container Sandbox (SSE) experience has been replaced with Devboxes (https://codesandbox.io/docs/learn/devboxes/overview)
'platforms/codesandbox',
'platforms-serverless-vercel/vercel-with-redwood/api', // Redwood uses workspaces but is included
'platforms-serverless-vercel/vercel-with-redwood/web', // Redwood uses workspaces but is included
'platforms-serverless/firebase-functions/functions', // Firebase root doesn't have package.json but is included
Expand Down Expand Up @@ -97,14 +94,6 @@ async function main() {
return acc.concat(...matrix_optional[key])
}, [])

// These are in optional-test.yaml, under the `platforms` directory
// But the names don't match the directory name
// Example `platforms-codesandbox` is in `platforms` directory
// So this renames the key so it's correctly processed
if (key === 'platforms-codesandbox') {
key = 'platforms'
}

return folders.concat(folders_optional).map((folder) => `${key}/${folder}`)
})
.reduce((acc, folders) => acc.concat([...folders]), [])
Expand Down
10 changes: 0 additions & 10 deletions .github/scripts/test-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ shopt -s inherit_errexit || true
export CI=true

dir=$1

# These are in optional-test.yaml, under the `platforms` directory
# But the names don't match the directory name
# Example `platforms-codesandbox` is in `platforms` directory
# So this renames the key so it's correctly processed
if [[ "$dir" = "platforms-codesandbox" ]]
then
dir="platforms"
fi

project=$2
# allow matrix being undefined
set +u
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/optional-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,62 +147,3 @@ jobs:
- name: notify-slack
if: failure()
run: bash .github/slack/notify-failure.sh ${{ github.job }} ${{ matrix.generator }}

# platforms-codesandbox:
# needs: [detect_jobs_to_run]
# if: contains(fromJSON(needs.detect_jobs_to_run.outputs.jobs), 'platforms')

# timeout-minutes: 45
# strategy:
# fail-fast: false
# matrix:
# platform:
# - codesandbox
# clientEngine: ['library', 'binary']
# os: [ubuntu-22.04]
# runs-on: ${{ matrix.os }}
# concurrency: ${{ github.job }}-${{ matrix.platform }}-${{ matrix.clientEngine }}

# steps:
# - uses: actions/checkout@v4

# - uses: pnpm/[email protected]
# with:
# version: 8

# - uses: actions/setup-node@v4
# with:
# node-version: 16
# cache: 'npm'
# cache-dependency-path: platforms/${{ matrix.platform }}/package-lock.json

# - name: Define Client Engine Type to test
# run: echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.clientEngine }}" >> $GITHUB_ENV

# - name: Install Dependencies
# run: npm install

# - name: Install Puppeteer
# uses: ianwalter/[email protected]

# - name: Set test specific DATABASE_URL
# run: |
# string=${{ env.DATABASE_URL_POSTGRES_TEMPLATE }}
# search=database
# replace=${{ github.job }}_${{ matrix.platform }}_${{ matrix.os }}_${{ matrix.clientEngine }}
# replaced=${string/$search/$replace}
# echo "DATABASE_URL=$replaced" >> $GITHUB_ENV
# env:
# DATABASE_URL_POSTGRES_TEMPLATE: ${{ secrets.DATABASE_URL_POSTGRES_TEMPLATE }}

# - name: test ${{ matrix.platform }} - ${{ matrix.clientEngine }}
# id: run-test
# uses: nick-invision/retry@v3
# with:
# timeout_minutes: 45
# max_attempts: 3
# command: bash .github/scripts/test-project.sh ${{ github.job }} ${{ matrix.platform }}

# - name: notify-slack
# if: failure()
# run: bash .github/slack/notify-failure.sh ${{ github.job }} ${{ matrix.platform }}
5 changes: 0 additions & 5 deletions platforms/codesandbox/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions platforms/codesandbox/README.md

This file was deleted.

133 changes: 0 additions & 133 deletions platforms/codesandbox/deploy.ts

This file was deleted.

Loading

0 comments on commit e36408e

Please sign in to comment.