ci: use pnpm in tests

This commit is contained in:
dumbmoron 2024-08-03 09:32:42 +00:00
parent e50b4b0328
commit 2beacce70d
No known key found for this signature in database

View file

@ -11,6 +11,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Check that lockfile does not need an update - name: Check that lockfile does not need an update
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
@ -20,6 +21,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Run test script - name: Run test script
run: .github/test.sh web run: .github/test.sh web
@ -29,6 +31,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Run test script - name: Run test script
run: .github/test.sh api run: .github/test.sh api
@ -40,8 +43,9 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- id: checkServices - 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: test-services:
needs: check-services needs: check-services
@ -54,4 +58,5 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: npm ci && node api/src/util/test-ci run-tests-for ${{ matrix.service }} - uses: pnpm/action-setup@v4
- run: pnpm i --frozen-lockfile && node api/src/util/test-ci run-tests-for ${{ matrix.service }}