Skip to content

Commit

Permalink
ci: add prettier lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Oct 9, 2024
1 parent a1a0143 commit edf113d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches-ignore:
- prod

jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: latest

- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- run: pnpm install

- name: Lint
run: pnpm lint
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "",
"type": "module",
"scripts": {
"build": "tsx esbuild.ts",
"coverage": "vitest run --coverage",
"generateApi": "tsx generate-api.js && prettier src/__generated__ --write",
"lint": "prettier . --check",
"start": "tsx index.ts",
"test": "vitest",
"type-check": "tsc --noEmit",
"build": "tsx esbuild.ts"
"typecheck": "tsc --noEmit"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit edf113d

Please sign in to comment.