Skip to content

Commit d2e0297

Browse files
committed
ci: convert to pnpm scripts
1 parent 9438d24 commit d2e0297

File tree

2 files changed

+14
-51314
lines changed

2 files changed

+14
-51314
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ jobs:
3636
uses: actions/setup-node@v2
3737
with:
3838
node-version: ${{ matrix.node-version }}
39-
- name: install npm 7
40-
run: npm i -g npm@^7
41-
- name: npm install
42-
run: npm ci
39+
- name: Install pnpm
40+
uses: pnpm/[email protected]
41+
with:
42+
version: 6
43+
run_install: true
4344
- name: Generate Prisma Schema
4445
if: ${{ matrix.test == 'prisma-sample' }}
45-
run: npx prisma generate --schema apps/prisma-sample/prisma/schema.prisma
46-
- name: npm test
47-
run: npm run nx -- test ${{ matrix.test }}
46+
run: pnpx prisma generate --schema apps/prisma-sample/prisma/schema.prisma
47+
- name: pnpm test
48+
run: pnpm nx test ${{ matrix.test }}
4849

4950
e2e-test:
5051
runs-on: ubuntu-latest
@@ -58,14 +59,15 @@ jobs:
5859
uses: actions/setup-node@v2
5960
with:
6061
node-version: ${{ matrix.node-version }}
61-
- name: install npm 7
62-
run: npm i -g npm@^7
6362
- name: Start Docker-Compose
6463
run: docker-compose up -d
65-
- name: npm install
66-
run: npm ci
64+
- name: Install pnpm
65+
uses: pnpm/[email protected]
66+
with:
67+
version: 6
68+
run_install: true
6769
- name: Run tests
68-
run: npm run test:e2e
70+
run: pnpm run test:e2e
6971
- name: Stop Docker-Compose
7072
run: docker-compose down
7173

0 commit comments

Comments
 (0)