aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2024-01-16 13:49:37 -0500
committerSebastien Castiel <sebastien@castiel.me>2024-01-16 13:55:34 -0500
commit6b6d58e95ec018c695e9d865b8136319ad93e825 (patch)
treef3e7ad099f942fad1080a3d537fab59cf1372ae9 /.github
parentd809e10d1923fe29351a4c969eaa3468baf15397 (diff)
Add GitHub actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..6b81bbb
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,36 @@
+name: CI
+
+on:
+ push:
+ branches: ['main']
+ pull_request:
+ branches: ['main']
+
+jobs:
+ checks:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@v3
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: 18
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: npm ci --ignore-scripts
+
+ - name: Generate Prisma client
+ run: npx prisma generate
+
+ - name: Check TypeScript types
+ run: npm run check-types
+
+ - name: Check ESLint
+ run: npm run lint
+
+ - name: Check Prettier formatting
+ run: npm run check-formatting