Skip to content

Commit

Permalink
ci: added pr check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xObsidian committed Dec 9, 2024
1 parent f4c43a5 commit 9aef996
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PR Check

on:
pull_request:
branches:
- main

jobs:
test-and-lint:
name: Test and Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Install Dependencies
run: yarn

- name: Run Tests and Coverage
run: |
yarn test
NODE_OPTIONS="--experimental-require-module" yarn test:coverage
- name: Check Formatting
run: |
# Run format check on all workspaces
yarn workspaces foreach --all run format --check

0 comments on commit 9aef996

Please sign in to comment.