From 2beacce70d051f7e7a93849e9fdfb40838cc47e0 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 3 Aug 2024 09:32:42 +0000 Subject: [PATCH] ci: use pnpm in tests --- .github/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 652f2a47..f99af1c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - name: Check that lockfile does not need an update run: pnpm install --frozen-lockfile @@ -20,6 +21,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - name: Run test script run: .github/test.sh web @@ -29,6 +31,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - name: Run test script run: .github/test.sh api @@ -40,8 +43,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - id: checkServices - run: npm ci && echo "service_list=$(node api/src/util/test-ci get-services)" >> "$GITHUB_OUTPUT" + run: pnpm i --frozen-lockfile && echo "service_list=$(node api/src/util/test-ci get-services)" >> "$GITHUB_OUTPUT" test-services: needs: check-services @@ -54,4 +58,5 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - run: npm ci && node api/src/util/test-ci run-tests-for ${{ matrix.service }} \ No newline at end of file + - uses: pnpm/action-setup@v4 + - run: pnpm i --frozen-lockfile && node api/src/util/test-ci run-tests-for ${{ matrix.service }} \ No newline at end of file