Skip to content

Commit

Permalink
chore: Add pr-check script for linting and building
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jun 19, 2024
1 parent c243f77 commit 38bf9e7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run PR Check

on:
pull_request:
branches:
- main

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

release:
types: [published]

jobs:
build:
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: Install dependencies
run: yarn install

- name: Run PR Check
run: 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": {
"next": "14.2.4",
Expand Down

0 comments on commit 38bf9e7

Please sign in to comment.