diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cfd36c9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: Build +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + - run: npm ci + - run: npm run build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..00c6285 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + - run: npm ci + - run: npm run lint:ci diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml new file mode 100644 index 0000000..8dbcb5d --- /dev/null +++ b/.github/workflows/typecheck.yml @@ -0,0 +1,17 @@ +name: Type Check +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] +jobs: + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + - run: npm ci + - run: npm run typecheck diff --git a/package.json b/package.json index 3e4b965..4f138b6 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,9 @@ "build": "tsup", "prepare": "npm run build", "typecheck": "tsc --noEmit", + "lint": "biome check .", + "lint:ci": "biome ci .", + "format": "biome format . --write", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:push": "drizzle-kit push",