Add github actions

This commit is contained in:
Bill Yang 2025-02-17 18:46:54 -08:00
parent 7a49c4d28b
commit 8dc7d41604
3 changed files with 71 additions and 0 deletions

11
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/client"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/server"
schedule:
interval: "daily"

31
.github/workflows/client-build.yml vendored Normal file
View file

@ -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

29
.github/workflows/server-build.yml vendored Normal file
View file

@ -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