Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"plugins": [
{
"name": "visualci",
"version": "0.1.61",
"version": "0.1.62",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": { "name": "DocSpring", "url": "https://visualci.com" },
"homepage": "https://visualci.com/docs/skills/",
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "visualci",
"version": "0.1.61",
"version": "0.1.62",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": { "name": "DocSpring", "url": "https://visualci.com" },
"homepage": "https://visualci.com/docs/skills/",
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visualci",
"displayName": "VisualCI",
"version": "0.1.61",
"version": "0.1.62",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": {
"name": "DocSpring"
Expand Down
12 changes: 7 additions & 5 deletions frontend/content/docs/ci/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0 # VisualCI finds the baseline through the commit's ancestors
- run: npm test -- -u # write snapshots instead of failing; see the snapshot guides
- uses: DocSpring/visualci/clients/github-action@v{{cli_version}}
- uses: DocSpring/visualci/clients/github-action@v0
if: always()
with:
token: ${{ secrets.VISUALCI_TOKEN }}
Expand All @@ -30,6 +30,8 @@ jobs:
screenshots --platform chromium-linux --threshold 0.1
```

`@v0` follows each new release of the action and its CLI. To keep a new release from changing a build, pin a release tag such as `@v{{cli_version}}` in its place, as you would `VISUALCI_VERSION` in other CIs.

Run it on `pull_request` and on pushes to your main branch only: with `push` on every branch too, each commit to a pull request runs twice and sends two builds.

The action installs the CLI, creates the build, uploads and finalizes it. `upload` takes one `visualci upload` per line, as its arguments (paths, `--from`, `--prefix`, `--platform`, `--format`); leave it out to send the `uploads` in [visualci.yml](/docs/reference/config/). Without a token the step fails, so a misnamed secret can't pass quietly. The token comes from `token`, or from `VISUALCI_TOKEN` in the workflow's or job's `env`. The exceptions are where GitHub passes no repository secrets: a fork's pull request and runs in a fork get none, and Dependabot's pull requests get only Dependabot secrets. The action skips those with a notice; [send a fork's from a second workflow](#pull-requests-from-forks), and add `VISUALCI_TOKEN` to the Dependabot secrets to review Dependabot's.
Expand All @@ -42,7 +44,7 @@ The action installs the CLI, creates the build, uploads and finalizes it. `uploa
| `wait` | Wait for the result, and fail the step when the project's CI mode says CI should fail. |
| `allow-empty` | The build may have no snapshots on purpose. |
| `finalize`, `finalize-only` | For several jobs sharing one build (below). |
| `version` | The CLI release to install. |
| `version` | The CLI release to install. Default: the release that tag of the action came with. |

### Several jobs, one build

Expand All @@ -56,7 +58,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from
browser: [chromium, webkit]
steps:
# ... checkout and tests ...
- uses: DocSpring/visualci/clients/github-action@v{{cli_version}}
- uses: DocSpring/visualci/clients/github-action@v0
with:
token: ${{ secrets.VISUALCI_TOKEN }}
finalize: false
Expand All @@ -68,7 +70,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: DocSpring/visualci/clients/github-action@v{{cli_version}}
- uses: DocSpring/visualci/clients/github-action@v0
with:
token: ${{ secrets.VISUALCI_TOKEN }}
finalize-only: true
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
- uses: actions/checkout@v4 # your default branch: the fork's commits are only fetched
with:
fetch-depth: 0
- uses: DocSpring/visualci/clients/github-action@v{{cli_version}}
- uses: DocSpring/visualci/clients/github-action@v0
with:
token: ${{ secrets.VISUALCI_TOKEN }}
artifact: visualci
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/cli-version.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// The CLI release the docs install: `{{cli_version}}` in a page's Markdown (VISUALCI_VERSION={{cli_version}},
// DocSpring/visualci/clients/github-action@v{{cli_version}}) is filled in at build time with the newest published
// the pinned github-action@v{{cli_version}} tag) is filled in at build time with the newest published
// release, so the docs never pin an old one or a CLI nobody can download yet (a release goes out after CI on main
// passes, .github/workflows/release.yml, later than the site deploys). The generated skills (scripts/skills.mjs) are
// committed, so they say x.y.z and where to find the newest release instead.
Expand Down
2 changes: 1 addition & 1 deletion gemini-extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "visualci",
"version": "0.1.61",
"version": "0.1.62",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"mcpServers": {
"visualci": {
Expand Down
12 changes: 7 additions & 5 deletions skills/visualci-github-actions/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0 # VisualCI finds the baseline through the commit's ancestors
- run: npm test -- -u # write snapshots instead of failing; see the snapshot guides
- uses: DocSpring/visualci/clients/github-action@vx.y.z
- uses: DocSpring/visualci/clients/github-action@v0
if: always()
with:
token: ${{ secrets.VISUALCI_TOKEN }}
Expand All @@ -37,6 +37,8 @@ jobs:
screenshots --platform chromium-linux --threshold 0.1
```

`@v0` follows each new release of the action and its CLI. To keep a new release from changing a build, pin a release tag such as `@vx.y.z` in its place, as you would `VISUALCI_VERSION` in other CIs.

Run it on `pull_request` and on pushes to your main branch only: with `push` on every branch too, each commit to a pull request runs twice and sends two builds.

The action installs the CLI, creates the build, uploads and finalizes it. `upload` takes one `visualci upload` per line, as its arguments (paths, `--from`, `--prefix`, `--platform`, `--format`); leave it out to send the `uploads` in [visualci.yml](https://visualci.com/docs/reference/config.md). Without a token the step fails, so a misnamed secret can't pass quietly. The token comes from `token`, or from `VISUALCI_TOKEN` in the workflow's or job's `env`. The exceptions are where GitHub passes no repository secrets: a fork's pull request and runs in a fork get none, and Dependabot's pull requests get only Dependabot secrets. The action skips those with a notice; [send a fork's from a second workflow](#pull-requests-from-forks), and add `VISUALCI_TOKEN` to the Dependabot secrets to review Dependabot's.
Expand All @@ -49,7 +51,7 @@ The action installs the CLI, creates the build, uploads and finalizes it. `uploa
| `wait` | Wait for the result, and fail the step when the project's CI mode says CI should fail. |
| `allow-empty` | The build may have no snapshots on purpose. |
| `finalize`, `finalize-only` | For several jobs sharing one build (below). |
| `version` | The CLI release to install. |
| `version` | The CLI release to install. Default: the release that tag of the action came with. |

### Several jobs, one build

Expand All @@ -63,7 +65,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from
browser: [chromium, webkit]
steps:
# ... checkout and tests ...
- uses: DocSpring/visualci/clients/github-action@vx.y.z
- uses: DocSpring/visualci/clients/github-action@v0
with:
token: ${{ secrets.VISUALCI_TOKEN }}
finalize: false
Expand All @@ -75,7 +77,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: DocSpring/visualci/clients/github-action@vx.y.z
- uses: DocSpring/visualci/clients/github-action@v0
with:
token: ${{ secrets.VISUALCI_TOKEN }}
finalize-only: true
Expand Down Expand Up @@ -119,7 +121,7 @@ jobs:
- uses: actions/checkout@v4 # your default branch: the fork's commits are only fetched
with:
fetch-depth: 0
- uses: DocSpring/visualci/clients/github-action@vx.y.z
- uses: DocSpring/visualci/clients/github-action@v0
with:
token: ${{ secrets.VISUALCI_TOKEN }}
artifact: visualci
Expand Down
Loading