Skip to content

Commit

Permalink
fix(ci): restore lints (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
verytactical authored Nov 21, 2024
1 parent a3117f1 commit 242594e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Pull request

on:
pull_request:
branches: ['**']

jobs:
build:
runs-on: ubuntu-latest

permissions:
packages: write
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install
run: |
npm ci
- name: Build
run: |
npm run build
- name: Check formatting
run: |
npm run format:check
- name: Run Next lint
run: |
npm run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "next lint",
"format:check": "prettier --check --ignore-path .prettierignore --ignore-path .gitignore .",
"format:fix": "prettier --write --ignore-path .prettierignore --ignore-path .gitignore .",
"prepare": "husky",
"postinstall": "husky",
"commit": "git-cz"
},
"config": {
Expand Down

0 comments on commit 242594e

Please sign in to comment.