Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienZ committed Sep 14, 2024
0 parents commit a0b718b
Show file tree
Hide file tree
Showing 14 changed files with 4,408 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches:
- '**' # Matches every branch
pull_request:
branches:
- master

jobs:
install-lint-and-test:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: npnpm i

- name: Typecheck
run: npm run test:types

- name: Lint
run: npm run lint

- name: Test
run: npm run test:ci

- name: Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage


# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Mac OSX
.DS_Store



# Nuxt dev/build outputs
.data

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea
30 changes: 30 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "drizzle-schema-checker",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "pnpm run vitest"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@biomejs/biome": "^1.9.0",
"db0": "^0.1.4",
"tsup": "^8.2.4",
"vitest": "^2.1.1"
},
"dependencies": {
"@libsql/client": "^0.11.0",
"better-sqlite3": "^11.3.0",
"consola": "^3.2.3",
"drizzle-orm": "^0.33.0",
"zod": "^3.23.8"
}
}
Loading

0 comments on commit a0b718b

Please sign in to comment.