-
Notifications
You must be signed in to change notification settings - Fork 25
62 lines (50 loc) · 1.62 KB
/
failing-weekly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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://github.com/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 }}