Refactor template-settings UI: opt-in preview modal and per-type cards #394
Workflow file for this run
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 Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Scan for secrets | |
| run: npm run scan-secrets | |
| - name: Run tests | |
| run: npm test | |
| - name: Run tests with coverage | |
| run: npm run test:coverage | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./coverage/lcov.info | |
| flags: unittests | |
| name: codecov-umbrella | |
| continue-on-error: true | |
| - name: Run build script | |
| run: npm run build | |
| - name: Verify build artifacts | |
| run: | | |
| if [ ! -f "main.js" ]; then | |
| echo "Error: main.js not found!" | |
| exit 1 | |
| fi | |
| if [ ! -f "manifest.json" ]; then | |
| echo "Error: manifest.json not found!" | |
| exit 1 | |
| fi | |
| echo "Build artifacts verified successfully." |