From 0503d8a0d9517671b4b206db00cc30f5379ccd5f Mon Sep 17 00:00:00 2001 From: Ricardo Zanini Date: Wed, 26 Aug 2026 11:58:20 -0400 Subject: [PATCH] Add GitHub Actions CI workflow for build validation - Build and test site on every PR and push to main - Verify dist directory is generated correctly - Upload build artifacts for review - Use Node.js 22 with npm caching for faster builds Signed-off-by: Ricardo Zanini --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ec908a4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + build: + name: Build and Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build site + run: npm run build + + - name: Check build output + run: | + if [ ! -d "dist" ]; then + echo "Error: dist directory not found" + exit 1 + fi + echo "Build successful! Generated files:" + ls -lh dist/ + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: site-build + path: dist/ + retention-days: 7