Skip to content

Commit 1fa936d

Browse files
committed
ci: added pr check workflow
1 parent f4c43a5 commit 1fa936d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test-and-lint:
10+
name: Test and Format Check
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v3
15+
16+
- name: Enable Corepack
17+
run: corepack enable
18+
19+
- name: Setup Node.js 20.x
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 20.x
23+
24+
- name: Install Dependencies
25+
run: yarn
26+
27+
- name: Run Tests and Coverage
28+
run: |
29+
yarn test
30+
yarn test:coverage
31+
32+
- name: Check Formatting
33+
run: |
34+
# Run format check on all workspaces
35+
yarn workspaces foreach --all run format --check

0 commit comments

Comments
 (0)