@@ -11,15 +11,18 @@ jobs:
1111 steps :
1212 - name : Git checkout
1313 uses : actions/checkout@v3
14+ - uses : pnpm/action-setup@v2.2.2
15+ with :
16+ version : 7
1417 - name : Use Node.js ${{ matrix.node-version }}
1518 uses : actions/setup-node@v3
1619 with :
1720 node-version : ${{ matrix.node-version }}
18- cache : ${{ !env.ACT && 'npm ' || '' }} # Disable cache for nektos/act
21+ cache : ${{ !env.ACT && 'pnpm ' || '' }} # Disable cache for nektos/act
1922 - name : Install dependencies
20- run : yarn install
23+ run : pnpm install
2124 - name : Run tests
22- run : yarn test
25+ run : pnpm test
2326 env :
2427 CI : true
2528 mongo : # mongo specific test suite
@@ -31,25 +34,28 @@ jobs:
3134 steps :
3235 - name : Git checkout
3336 uses : actions/checkout@v3
37+ - uses : pnpm/action-setup@v2.2.2
38+ with :
39+ version : 7
3440 - name : Use Node.js ${{ matrix.node-version }}
3541 uses : actions/setup-node@v3
3642 with :
3743 node-version : ${{ matrix.node-version }}
38- cache : ${{ !env.ACT && 'npm ' || '' }} # Disable cache for nektos/act
44+ cache : ${{ !env.ACT && 'pnpm ' || '' }} # Disable cache for nektos/act
3945 - name : Start MongoDB
4046 uses : supercharge/mongodb-github-action@1.8.0
4147 with :
4248 mongodb-version : ${{ matrix.mongodb-version }}
4349 mongodb-replica-set : test-rs
4450 mongodb-port : 27017
4551 - name : Install dependencies
46- run : yarn install
52+ run : pnpm install
4753 - name : Run tests
48- run : yarn test ./test/driver/mongo.spec.ts
54+ run : pnpm test ./test/driver/mongo.spec.ts
4955 env :
5056 CI : true
5157 MONGO_URI : mongodb://localhost:27017?replicaSet=test-rs
52- postgres : # mongo specific test suite
58+ postgres : # postgres specific test suite
5359 runs-on : ubuntu-latest
5460 strategy :
5561 matrix :
@@ -63,11 +69,14 @@ jobs:
6369 steps :
6470 - name : Git checkout
6571 uses : actions/checkout@v3
72+ - uses : pnpm/action-setup@v2.2.2
73+ with :
74+ version : 7
6675 - name : Use Node.js ${{ matrix.node-version }}
6776 uses : actions/setup-node@v3
6877 with :
6978 node-version : ${{ matrix.node-version }}
70- cache : ${{ !env.ACT && 'npm ' || '' }} # Disable cache for nektos/act
79+ cache : ${{ !env.ACT && 'pnpm ' || '' }} # Disable cache for nektos/act
7180 - name : Setup Postgres database
7281 uses : Daniel-Marynicz/postgresql-action@master
7382 with :
7786 app_db : app
7887 postgres_extensions : uuid-ossp pgcrypto
7988 - name : Install dependencies
80- run : yarn install
89+ run : pnpm install
8190 - name : Run tests
82- run : yarn test ./test/driver/postgres.spec.ts
91+ run : pnpm test ./test/driver/postgres.spec.ts
8392 env :
8493 CI : true
8594 POSTGRES_URL : postgres://app:test@localhost:5432/app
0 commit comments