From 10ec82739728b637adb0cccabb84f30143182be8 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 31 Jul 2025 10:27:04 +0200 Subject: [PATCH] Add workflow --- .github/workflows/build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..3c3bb9ab --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,29 @@ +name: Check Next.js Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Build Next.js App + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' # or match the version in .nvmrc or package.json + + - name: Install dependencies + run: npm ci + + - name: Build the app + run: npm run build