Improve README formatting and clarity #29
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Validate Firebase rules JSON | |
| run: npm run validate:rules:json | |
| - name: Validate Firebase rules syntax and smoke test | |
| # Validates firebase-rules.json syntax and runs behavioral smoke tests against | |
| # the Firebase Database Emulator. This does NOT deploy the rules to the live | |
| # Firebase project. After merging changes to firebase-rules.json, deploy manually: | |
| # npx firebase-tools deploy --only database --project YOUR_PROJECT_ID | |
| # Automating deployment here would require a Firebase service-account secret in | |
| # GitHub Actions — see README Step 7 for instructions. | |
| run: npm run validate:rules | |
| - name: Build app | |
| run: npm run build |