From 13aae2ba05c8c001560eb1ba17a713507603e648 Mon Sep 17 00:00:00 2001 From: Antoine Boucher Date: Fri, 29 Nov 2024 12:17:39 -0500 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5f2d0dc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build and Test + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Build and Test + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' + + - name: Install Dependencies + run: yarn install + + - name: Run Tests + run: yarn test + + - name: Build Project + run: yarn build + + - name: Verify Build Output + run: | + if [ ! -d ".next" ]; then + echo "Build output missing!" + exit 1 + fi