Skip to content

Commit

Permalink
Add a workflow to check types and lint (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzumiSy authored Jan 14, 2025
1 parent f02e3da commit c13bca7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
code-checks:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.9.0
run_install: false
- uses: actions/setup-node@v4
with:
cache: pnpm
cache-dependency-path: ./pnpm-lock.yaml
node-version-file: './package.json'
- name: Install dependencies
run: pnpm install
- run: pnpm type-check
- run: pnpm lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"type-check": "tsc --noEmit --incremental --pretty",
"lint": "eslint '**/*.{ts,tsx}' --ignore-pattern 'dist/*' --max-warnings=0",
"preview": "vite preview"
},
Expand Down

0 comments on commit c13bca7

Please sign in to comment.