Repository navigation
add app-ads.txt for reaktor's admob ads #5
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: Code Quality | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the project | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.x | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: TypeScript type check | |
| id: typecheck | |
| run: npm run typecheck | |
| continue-on-error: true | |
| - name: Lint | |
| id: lint | |
| run: npm run lint | |
| continue-on-error: true | |
| - name: Format check | |
| id: format | |
| run: npm run format:check | |
| continue-on-error: true | |
| - name: Build | |
| id: build | |
| run: npm run build | |
| continue-on-error: true | |
| - name: Security audit | |
| id: audit | |
| run: npm audit --audit-level=high | |
| continue-on-error: true | |
| - name: Summary | |
| if: always() | |
| run: | | |
| echo "TypeScript: ${{ steps.typecheck.outcome }}" | |
| echo "Lint: ${{ steps.lint.outcome }}" | |
| echo "Format: ${{ steps.format.outcome }}" | |
| echo "Build: ${{ steps.build.outcome }}" | |
| echo "Security Audit: ${{ steps.audit.outcome }}" | |
| if [ "${{ steps.typecheck.outcome }}" == "failure" ] || \ | |
| [ "${{ steps.lint.outcome }}" == "failure" ] || \ | |
| [ "${{ steps.format.outcome }}" == "failure" ] || \ | |
| [ "${{ steps.build.outcome }}" == "failure" ]; then | |
| exit 1 | |
| fi | |
| - name: Comment on PR | |
| if: always() && github.event_name == 'pull_request' | |
| uses: thollander/actions-comment-pull-request@v3 | |
| with: | |
| message: | | |
| ### Code Quality Summary | |
| | TypeScript | Lint | Format | Build | Security Audit | | |
| |:----------:|:----:|:------:|:-----:|:--------------:| | |
| | ${{ steps.typecheck.outcome == 'success' && '✅ Passed' || '❌ Failed' }} | ${{ steps.lint.outcome == 'success' && '✅ Passed' || '❌ Failed' }} | ${{ steps.format.outcome == 'success' && '✅ Passed' || '❌ Failed' }} | ${{ steps.build.outcome == 'success' && '✅ Passed' || '❌ Failed' }} | ${{ steps.audit.outcome == 'success' && '✅ Passed' || '❌ Failed' }} | | |
| comment-tag: code-quality-summary |