Skip to content

Commit 07203cc

Browse files
committed
chore: Adds test check for all PRs and main
1 parent 4ed6323 commit 07203cc

File tree

2 files changed

+48
-3
lines changed

2 files changed

+48
-3
lines changed

.github/workflows/release.yml renamed to .github/workflows/changeset.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Prepare Changeset
22

33
on:
44
push:
@@ -11,8 +11,8 @@ env:
1111
concurrency: ${{ github.workflow }}-${{ github.ref }}
1212

1313
jobs:
14-
release:
15-
name: Release
14+
changeset:
15+
name: Update Changeset
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout Repo

.github/workflows/tests.yml

+45
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)