diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5753be2 --- /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 0000000..98523ee --- /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 0000000..1336bf8 --- /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