Compare commits

...

2 commits

Author SHA1 Message Date
Lukasz Ostrowski
14168939a2 empty 2023-03-09 08:19:20 +01:00
Lukasz Ostrowski
c8af34f654 test perf of pnpm cache 2023-03-09 08:14:06 +01:00
2 changed files with 22 additions and 3 deletions

View file

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

View file

@ -9,17 +9,36 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4 - uses: pnpm/action-setup@v2.2.4
with: 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 - uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 18
cache: "pnpm" # cache: "pnpm"
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
- name: Generate schema - name: Generate schema
run: pnpm generate run: pnpm generate
- name: Test - name: Test
run: pnpm test:ci run: pnpm test:ci
# TODO: Add coverage - crawl through every package # TODO: Add coverage - crawl through every package