chore(deps): update dependency vite to v7 #32891
This file contains hidden or 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 | |
| on: | |
| push: | |
| paths: | |
| - orm/** | |
| - databases/** | |
| - tests/** | |
| - package.json | |
| - vitest.config.ts | |
| branches: | |
| - latest | |
| pull_request: | |
| env: | |
| CI: 1 | |
| PRISMA_TELEMETRY_INFORMATION: 'prisma-examples test.yaml' | |
| SLACK_WEBHOOK_URL_FAILING: ${{ secrets.SLACK_WEBHOOK_URL_FAILING }} | |
| SKIP_PRISMA_VERSION_CHECK: true | |
| jobs: | |
| # Generate test matrix from test files | |
| test-matrix: | |
| if: github.repository_owner == 'prisma' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: set-matrix | |
| run: | | |
| # Find all test files and create matrix JSON | |
| tests=$(find tests -name "*.test.ts" | sed 's|tests/||' | sed 's|\.test\.ts||' | jq -R -s -c 'split("\n") | map(select(length > 0))') | |
| echo "matrix={\"test\":$tests}" >> $GITHUB_OUTPUT | |
| test: | |
| needs: test-matrix | |
| if: github.repository_owner == 'prisma' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.test-matrix.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install root dependencies | |
| run: npm install | |
| - name: Run test - ${{ matrix.test }} | |
| run: npx vitest run tests/${{ matrix.test }}.test.ts |