-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (34 loc) · 1.07 KB
/
unit-test.yml
File metadata and controls
36 lines (34 loc) · 1.07 KB
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: Unit Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.28.0
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'pnpm'
- run: pnpm install --no-frozen-lockfile
- run: pnpm -r --sort --workspace-concurrency=1 run build
- name: Test contentstack
working-directory: ./packages/contentstack
run: pnpm test
- name: Test contentstack-command
working-directory: ./packages/contentstack-command
run: pnpm test
- name: Test contentstack-config
working-directory: ./packages/contentstack-config
run: pnpm test
- name: Test contentstack-auth
working-directory: ./packages/contentstack-auth
run: pnpm test
# Commented out in v2-beta production
# - name: Test contentstack-utilities
# working-directory: ./packages/contentstack-utilities
# run: pnpm test