Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ updates:
- dependency-name: "babel-loader"
- dependency-name: "ts-loader"
- dependency-name: "cookie"
- dependency-name: "eslint*"
- dependency-name: "prettier"
- dependency-name: "webpack*"
- dependency-name: "typescript"

Expand Down Expand Up @@ -75,10 +73,12 @@ updates:
- dependency-name: "@types/*"
- dependency-name: "@babel/*"
- dependency-name: "babel-loader"
- dependency-name: "eslint*"
- dependency-name: "prettier"
- dependency-name: "webpack*"
- dependency-name: "typescript"
# react-docgen is pinned for legacy metadata extraction (extract-meta.js uses
# the react-docgen 5 API) and must never be updated.
ignore:
- dependency-name: "react-docgen"

# Components - dash-html-components
- package-ecosystem: "npm"
Expand All @@ -101,9 +101,12 @@ updates:
- dependency-name: "@types/*"
- dependency-name: "@babel/*"
- dependency-name: "babel-loader"
- dependency-name: "eslint*"
- dependency-name: "webpack*"
- dependency-name: "typescript"
# react-docgen is pinned for legacy metadata extraction (extract-meta.js uses
# the react-docgen 5 API) and must never be updated.
ignore:
- dependency-name: "react-docgen"

# Components - dash-table
- package-ecosystem: "npm"
Expand All @@ -130,10 +133,12 @@ updates:
- dependency-name: "css-loader"
- dependency-name: "less"
- dependency-name: "less-loader"
- dependency-name: "eslint*"
- dependency-name: "prettier"
- dependency-name: "webpack*"
- dependency-name: "typescript"
# react-docgen is pinned for legacy metadata extraction (extract-meta.js uses
# the react-docgen 5 API) and must never be updated.
ignore:
- dependency-name: "react-docgen"

# Python dependencies
- package-ecosystem: "pip"
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/post-test-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,44 @@ jobs:
}
}

- name: Post Percy status for fork/Dependabot PRs
# Percy needs PERCY_TOKEN to run, which is unavailable to fork PRs (and to
# Dependabot unless added to Dependabot secrets). Without a build, the
# Percy GitHub App never posts the required `percy/dash` status and the PR
# is blocked. Post a success status here so the check resolves — but only
# if Percy hasn't already posted one, so a real Percy result is never
# clobbered (e.g. when Dependabot does have the token).
if: >
github.event.workflow_run.head_repository.full_name != github.repository ||
github.event.workflow_run.actor.login == 'dependabot[bot]'
uses: actions/github-script@v7
with:
script: |
const { owner, repo } = context.repo;
const sha = context.payload.workflow_run.head_sha;
const statusContext = 'percy/dash';

const { data: { statuses } } = await github.rest.repos.getCombinedStatus({
owner,
repo,
ref: sha,
});

if (statuses.some(s => s.context === statusContext)) {
console.log(`'${statusContext}' already posted — leaving it untouched.`);
return;
}

await github.rest.repos.createCommitStatus({
owner,
repo,
sha,
state: 'success',
context: statusContext,
description: 'Skipped — Percy unavailable for fork/Dependabot PRs',
});
console.log(`Posted skipped status for ${statusContext}`);

test-report:
name: Consolidated Test Report (Fork PR)
runs-on: ubuntu-latest
Expand All @@ -79,6 +117,11 @@ jobs:
checks: write
actions: read
steps:
# dorny/test-reporter runs `git ls-files` to resolve test paths, so the
# repo must be checked out. This workflow_run job otherwise has no checkout.
- name: Checkout repository
uses: actions/checkout@v4

- name: Download test results artifact
uses: actions/download-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
1 change: 1 addition & 0 deletions components/dash-core-components/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
Loading
Loading