-
Notifications
You must be signed in to change notification settings - Fork 0
chore: adopt quality-zero-platform wrappers #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Applitools Visual | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [main, master] | ||
| push: | ||
| branches: [main, master] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| applitools-visual: | ||
| name: Applitools Visual | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: frontend/webcoder_ui | ||
| env: | ||
| APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: npm | ||
| cache-dependency-path: frontend/webcoder_ui/package-lock.json | ||
| - run: npm ci | ||
| - run: npx --yes playwright install --with-deps chromium | ||
| - run: npm run visual:applitools | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: Chromatic Playwright | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [main, master] | ||
| push: | ||
| branches: [main, master] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| chromatic-playwright: | ||
| name: Chromatic Playwright | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: frontend/webcoder_ui | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: npm | ||
| cache-dependency-path: frontend/webcoder_ui/package-lock.json | ||
| - run: npm ci | ||
| - run: npx --yes playwright install --with-deps chromium | ||
| - run: npm run visual:chromatic:archive | ||
| - run: npx --yes chromatic --playwright --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
| env: | ||
| CHROMATIC_ARCHIVE_LOCATION: frontend/webcoder_ui/test-results | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This job sets Useful? React with 👍 / 👎. |
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,27 @@ | ||
| name: Codecov Analytics | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| pull_request: | ||
| branches: [main, master] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| codecov-analytics: | ||
| name: Codecov Analytics | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| shared-codecov-analytics: | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-codecov-analytics.yml@2be048255a27d55eb7be18b82091b57f29d34ee6 | ||
| with: | ||
| repo_slug: ${{ github.repository }} | ||
| event_name: ${{ github.event_name }} | ||
| sha: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| platform_repository: Prekzursil/quality-zero-platform | ||
| platform_ref: 2be048255a27d55eb7be18b82091b57f29d34ee6 | ||
| secrets: | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }} | ||
| CODACY_ORGANIZATION_PROVIDER: gh | ||
| CODACY_USERNAME: Prekzursil | ||
| CODACY_PROJECT_NAME: ${{ github.event.repository.name }} | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: '3.12' | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Backend coverage | ||
| continue-on-error: true | ||
| run: | | ||
| mkdir -p coverage | ||
| python -m pip install --upgrade pip | ||
| python -m pip install -r backend/requirements.txt pytest pytest-cov | ||
| python -m pytest backend --cov=backend --cov-report=xml:backend/coverage.xml | ||
| - name: Frontend coverage | ||
| continue-on-error: true | ||
| run: | | ||
| npm --prefix frontend/webcoder_ui ci | ||
| npm --prefix frontend/webcoder_ui test -- --coverage --watch=false | ||
| - name: Upload coverage to Codecov | ||
| if: ${{ always() }} | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| files: backend/coverage.xml,frontend/webcoder_ui/coverage/lcov.info | ||
| flags: backend,frontend | ||
| fail_ci_if_error: true | ||
| verbose: true | ||
| - name: Upload coverage to Codacy | ||
| if: ${{ always() }} | ||
| uses: codacy/codacy-coverage-reporter-action@v1 | ||
| with: | ||
| api-token: ${{ env.CODACY_API_TOKEN }} | ||
| coverage-reports: backend/coverage.xml,frontend/webcoder_ui/coverage/lcov.info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow runs on
pull_requestbut depends onAPPLITOOLS_API_KEY; for forked PRs GitHub does not provide repository secrets, so the visual step fails regardless of code correctness. The same pattern exists in the Chromatic workflow withCHROMATIC_PROJECT_TOKEN, which can block external contributions if these checks are required. Add anifguard for secret availability or restrict secret-backed runs to trusted events.Useful? React with 👍 / 👎.