Skip to content

Commit

Permalink
update prettier workflow to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrank-summit committed Dec 24, 2024
1 parent d35d9ae commit 0a336b4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Code Formatting Check

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
format-check:
name: Prettier Check
runs-on: ubuntu-latest
defaults:
run:
working-directory: auto-kol/agent

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: 'auto-kol/agent/yarn.lock'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Check Formatting
run: yarn prettier --check "src/**/*.ts"
3 changes: 2 additions & 1 deletion auto-kol/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx watch src/index.ts",
"format": "prettier --write \"src/**/*.ts\""
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\""
},
"dependencies": {
"@autonomys/auto-dag-data": "^1.0.12",
Expand Down

0 comments on commit 0a336b4

Please sign in to comment.