Skip to content

Merge pull request

Merge pull request #37

Workflow file for this run

name: Next.js CI/CD
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package: [frontend, backend]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build and Test ${{matrix.package}}
run: |
cd packages/${{ matrix.package }}
if [ -f package.json ]; then
npm install
npm build || true
npm test || true
fi