test perf of pnpm cache

This commit is contained in:
Lukasz Ostrowski 2023-03-09 08:14:06 +01:00
parent d0da71df25
commit c8af34f654
2 changed files with 22 additions and 3 deletions

View file

@ -1,4 +1,4 @@
name: Monitoring tests
name: Monitoring App Backend tests
on:
pull_request:

View file

@ -9,17 +9,36 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
with:
version: 7.5.0
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
# cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Generate schema
run: pnpm generate
- name: Test
run: pnpm test:ci
# TODO: Add coverage - crawl through every package