Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Add github actions

Bill Yang8dc7d4160434
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 000000000..5753be296
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,11 @@
+version: 2
+updates:
+ - package-ecosystem: "npm"
+ directory: "/client"
+ schedule:
+ interval: "daily"
+
+ - package-ecosystem: "npm"
+ directory: "/server"
+ schedule:
+ interval: "daily"
diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml
new file mode 100644
index 000000000..98523ee70
--- /dev/null
+++ b/.github/workflows/client-build.yml
@@ -0,0 +1,31 @@
+name: Client Build
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 1
+ submodules: "recursive"
+ shallow-submodules: true
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v2
+ with:
+ node-version: "22"
+
+ - name: Install Dependencies
+ run: npm install
+ working-directory: ./client
+
+ - name: Build Next.js App
+ run: npm run build
+ working-directory: ./client
diff --git a/.github/workflows/server-build.yml b/.github/workflows/server-build.yml
new file mode 100644
index 000000000..1336bf88c
--- /dev/null
+++ b/.github/workflows/server-build.yml
@@ -0,0 +1,29 @@
+name: Backend Build
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v2
+ with:
+ node-version: "22"
+
+ - name: Install Dependencies
+ run: npm install
+ working-directory: ./server
+
+ - name: Build backend server
+ run: npm run build
+ working-directory: ./server