mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
Add github actions
This commit is contained in:
parent
7a49c4d28b
commit
8dc7d41604
3 changed files with 71 additions and 0 deletions
11
.github/dependabot.yml
vendored
Normal file
11
.github/dependabot.yml
vendored
Normal 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
31
.github/workflows/client-build.yml
vendored
Normal 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
29
.github/workflows/server-build.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue