-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 861 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
name: Test
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Use pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build workspace packages
run: pnpm build
- name: Branch Information
run: |
echo "Git Branch: $(git branch)"
echo "Git Log: $(git log --oneline)"
echo "HEAD SHA: $(git rev-parse HEAD)"
echo "HEAD^1 SHA: $(git rev-parse HEAD^1)"
echo "Git Diff: $(git diff HEAD^1)"
- name: Run Package(s) Tests
run: |
pnpm run test