Compare commits
2 commits
main
...
pnpm-workf
Author | SHA1 | Date | |
---|---|---|---|
![]() |
14168939a2 | ||
![]() |
c8af34f654 |
2 changed files with 22 additions and 3 deletions
2
.github/workflows/unit-tests-monitoring.yml
vendored
2
.github/workflows/unit-tests-monitoring.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Monitoring tests
|
name: Monitoring App Backend tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
23
.github/workflows/unit-tests.yml
vendored
23
.github/workflows/unit-tests.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue