Skip to content

Commit

Permalink
ci: add workflow to check format
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei committed Dec 13, 2024
1 parent 0cc628b commit 3afcd50
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches:
- "master"
pull_request:
branches:
- "master"

env:
HUSKY: 0

jobs:
ci:
name: CI
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install Dependencies
shell: bash
run: pnpm install --frozen-lockfile

- name: Format
run: |
pnpm run format
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.1
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@
"*.{ts,tsx,mdx,css,json}": [
"pnpm run format:fix"
]
}
},
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
}

0 comments on commit 3afcd50

Please sign in to comment.