Skip to content

Commit 2b7f722

Browse files
committed
chore: Adds test runs on all PRs and main branch
1 parent 38f12e5 commit 2b7f722

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
types:
11+
- opened
12+
- reopened
13+
- edited
14+
- synchronize
15+
16+
env:
17+
HUSKY: 0 # Disables husky hooks
18+
19+
concurrency: ${{ github.workflow }}-${{ github.ref }}
20+
21+
jobs:
22+
test:
23+
name: Run All Tests
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout Repo
27+
uses: actions/checkout@v3
28+
29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v4
31+
with:
32+
version: 9
33+
run_install: false
34+
35+
- name: Setup Node.js 20.x
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: 20.x
39+
cache: "pnpm"
40+
41+
- name: Install dependencies
42+
run: pnpm install
43+
44+
- name: Run Test Suite
45+
run: pnpm test

0 commit comments

Comments
 (0)