Merge pull request #1 from bylickilabs/bylickilabs-patch-1 #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ZeroTrace CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout Repository | |
uses: actions/checkout@v3 | |
- name: ⚙️ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: 📦 Install Dependencies | |
run: npm install | |
- name: 🧪 Lint JavaScript (coreEngine) | |
run: | | |
npm install eslint -g | |
eslint js/coreEngine.js --max-warnings=0 || true | |
- name: 📁 Create Uploads Directory | |
run: mkdir -p uploads | |
- name: ✅ Node.js Syntax Check | |
run: node -c server.js | |
- name: 📄 Validate index.html | |
run: | | |
grep -q "<!DOCTYPE html>" index.html && echo "index.html valid ✔️" || (echo "❌ index.html fehlt oder ungültig." && exit 1) | |
- name: 📝 Success Message | |
run: echo "ZeroTrace Build, Syntax & Strukturprüfung erfolgreich abgeschlossen! ✔️" |