-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (33 loc) · 957 Bytes
/
unit-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
name: 'Tests: Unit'
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
unit_tests:
name: Run unit tests for Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: actions/cache@v4
with:
path: ~/.pnpm-store
# prettier-ignore
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-
- uses: pnpm/action-setup@v4.0.0
with:
version: '^8.0.0'
- name: Install dependencies
run: pnpm recursive install
- name: Run unit tests
run: pnpm run test:ci
working-directory: packages/sveltekit-embed
env:
PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }}
PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }}