-
-
Notifications
You must be signed in to change notification settings - Fork 109
41 lines (33 loc) · 947 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run unit tests
on: [push]
env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI
jobs:
lint:
name: Run Unit Tests
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup caching
uses: actions/cache@v3
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: setup pnpm
uses: pnpm/[email protected]
with:
version: 7
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- run: pnpm install --no-frozen-lockfile --shamefully-hoist
- name: Run Tests
run: pnpm run test