name: CI - Build & Test run-name: 🔍 CI ${{ gitea.ref_name }} by @${{ gitea.actor }} on: push: branches: [main] pull_request: branches: [main] jobs: lint: name: Lint & Build runs-on: linux steps: - name: Checkout uses: actions/checkout@v4 - name: HTML Validate run: | echo "Checking HTML structure..." if grep -q "" index.html; then echo "✅ HTML5 doctype present" else echo "❌ Missing HTML5 doctype" exit 1 fi - name: CSS Check run: | echo "Checking CSS..." if grep -q "@media" css/style.css; then echo "✅ Responsive styles present" else echo "⚠️ No responsive styles found" fi - name: Nginx Config Test run: | echo "Checking nginx conf..." docker run --rm -v $PWD/nginx.conf:/tmp/nginx.conf:ro nginx:1.27-alpine nginx -t -c /tmp/nginx.conf 2>&1 || true - name: Build Docker Image run: | docker build -t noveria-landing:ci . echo "✅ Build successful"