Skip to content

Commit

Permalink
Add check pr action
Browse files Browse the repository at this point in the history
  • Loading branch information
owjs3901 committed Dec 24, 2024
1 parent 83d69da commit 87f0ed6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Pull Request
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- run: pnpm i
- run: |
pnpm lint
pnpm test

0 comments on commit 87f0ed6

Please sign in to comment.