Skip to content

Commit 5588108

Browse files
committed
Add unit test running to the public CI
1 parent b9bcecf commit 5588108

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,33 @@ jobs:
6464
- name: 🔎 Type check
6565
run: pnpm run typecheck --filter webapp
6666

67+
unitTests:
68+
name: Unit Tests
69+
runs-on: buildjet-4vcpu-ubuntu-2204
70+
steps:
71+
- name: ⬇️ Checkout repo
72+
uses: actions/checkout@v3
73+
with:
74+
fetch-depth: 0
75+
76+
- name: ⎔ Setup pnpm
77+
uses: pnpm/action-setup@v2.2.4
78+
with:
79+
version: 7.18
80+
81+
- name: ⎔ Setup node
82+
uses: buildjet/setup-node@v3
83+
with:
84+
node-version: 18
85+
cache: "pnpm"
86+
87+
- name: 📥 Download deps
88+
run: pnpm install --frozen-lockfile
89+
90+
- name: Run Unit Tests
91+
run: |
92+
pnpm run test
93+
6794
e2e:
6895
name: e2e Tests
6996
runs-on: buildjet-4vcpu-ubuntu-2204
@@ -122,7 +149,7 @@ jobs:
122149
retention-days: 30
123150

124151
publish:
125-
needs: [typecheck, e2e]
152+
needs: [typecheck, unitTests, e2e]
126153
runs-on: buildjet-4vcpu-ubuntu-2204
127154
outputs:
128155
version: ${{ steps.get_version.outputs.version }}

0 commit comments

Comments
 (0)