Skip to content

Commit

Permalink
chore: Add pr-check script to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jul 10, 2024
1 parent 175c7a8 commit 0e22801
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pull Request Check

on:
push:
branches: [ main ]

pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
checking-pr:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Test
run: |
yarn install
yarn pr-check
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"pr-check": "yarn lint && yarn build"
},
"dependencies": {
"@vercel/analytics": "^1.3.1",
Expand Down

0 comments on commit 0e22801

Please sign in to comment.