aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-13 14:38:00 +0900
committernsfisis <nsfisis@gmail.com>2025-07-13 14:38:00 +0900
commitafdc7b9c3ba38c652ed407d6f844c548c9a8b4a8 (patch)
treecb342b379eb785f4c39197f226634e73311e7793 /.github/workflows
parentd0099d8f48c5a497f50768c1ec05c6f417b03662 (diff)
downloadfeedaka-afdc7b9c3ba38c652ed407d6f844c548c9a8b4a8.tar.gz
feedaka-afdc7b9c3ba38c652ed407d6f844c548c9a8b4a8.tar.zst
feedaka-afdc7b9c3ba38c652ed407d6f844c548c9a8b4a8.zip
feat(ci): setup CI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-docker.yaml1
-rw-r--r--.github/workflows/ci.yaml54
2 files changed, 54 insertions, 1 deletions
diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml
index 8e3c258..e18bdf3 100644
--- a/.github/workflows/build-docker.yaml
+++ b/.github/workflows/build-docker.yaml
@@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*'
- workflow_dispatch:
jobs:
build-and-push:
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