Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 authored Nov 29, 2024
1 parent 4a0cff0 commit 13aae2b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 13aae2b

Please sign in to comment.