Skip to content

failing-weekly

failing-weekly #51

name: failing-weekly
on:
workflow_dispatch:
schedule:
# at 3am weekly on Sunday
- cron: '0 3 * * 0'
env:
PRISMA_TELEMETRY_INFORMATION: 'ecosystem-tests failing-weekly.yaml'
# To hide "Update available x.y.z -> x.y.z"
PRISMA_HIDE_UPDATE_MESSAGE: true
CI: 1
defaults:
run:
# this makes windows use bash as well, which makes `... >> $GITHUB_ENV` work there
shell: bash
jobs:
databases:
strategy:
fail-fast: false
matrix:
database:
# It fails, see https:/prisma/prisma/issues/15083
- mongodb-azure-cosmosdb
# Since it fails, we can test only library
clientEngine: ['library']
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
env:
DATABASE_URL_DB_MONGODB_AZURE_COSMOSDB: ${{ secrets.DATABASE_URL_DB_MONGODB_AZURE_COSMOSDB }}
steps:
- uses: actions/checkout@v4
- name: Define Client Engine Type to test
run: echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.clientEngine }}" >> $GITHUB_ENV
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 16
cache: 'pnpm'
cache-dependency-path: ${{ github.job }}/${{ matrix.database }}/pnpm-lock.yaml
- name: Install Dependencies
run: pnpm install
- name: test ${{ matrix.database }} - ${{matrix.clientEngine}}
id: run-test
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: bash .github/scripts/test-project.sh ${{ github.job }} ${{ matrix.database }}