feat: add HD/SD toggle with user consent flow #10
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: JavaScript Checks | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches: | |
| - main | |
| concurrency: | |
| group: js-checks-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| changed-files: | |
| name: Check Changed Files | |
| runs-on: ubuntu-latest | |
| outputs: | |
| any_changed: ${{ steps.changed.outputs.any_changed }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Check if any JavaScript files have changed | |
| id: changed | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c | |
| with: | |
| files: | | |
| apps/client/** | |
| apps/room-server/** | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| needs: changed-files | |
| if: needs.changed-files.outputs.any_changed == 'true' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| job: [build, format, test] | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Run ${{ matrix.job }} | |
| run: npm run ${{ matrix.job }} | |
| aggregate: | |
| name: Build and Test JavaScript | |
| runs-on: ubuntu-latest | |
| needs: build-and-test | |
| if: ${{ !cancelled() }} | |
| steps: | |
| - name: All checks have passed | |
| if: ${{ !contains(needs.*.result, 'failure') }} | |
| run: | | |
| echo "All JavaScript checks have passed successfully." | |
| exit 0 | |
| - name: Some checks failed | |
| if: ${{ contains(needs.*.result, 'failure') }} | |
| run: | | |
| echo "Some JavaScript checks failed. Please review the logs above." | |
| exit 1 |