aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..b5b2503
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,54 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+
+jobs:
+ frontend:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '22'
+ cache: 'npm'
+ cache-dependency-path: frontend/package-lock.json
+
+ - name: Install frontend dependencies
+ run: cd frontend && npm ci
+
+ - name: Generate code
+ run: cd frontend && npm run generate
+
+ - name: Lint
+ run: cd frontend && npm run check
+
+ - name: Build
+ run: cd frontend && npm run build
+
+ backend:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: '1.24'
+
+ - name: Install just
+ uses: extractions/setup-just@v3
+
+ - name: Generate code
+ run: cd backend && just generate
+
+ - name: Lint
+ run: cd backend && just check
+
+ - name: Build
+ run: cd backend && just build