feat: noveria.net coming soon landingpage with galaxy theme
CI - Build & Test / Lint & Build (push) Successful in 8s
CI - Build & Test / Lint & Build (push) Successful in 8s
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
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 "<!DOCTYPE html>" 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"
|
||||
Reference in New Issue
Block a user