Skip to content

Docker and Build github (#9) #1

Docker and Build github (#9)

Docker and Build github (#9) #1

Workflow file for this run

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