From 8b96834526d2d4927a792390033fe22fc45f3d22 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 4 Dec 2026 06:02:09 +1300 Subject: [PATCH] Docs: pin CLI 0.2.22 (images by SHA-256 alone; image masks) --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- .cursor-plugin/plugin.json | 2 +- .../get_skill-2.json | 2 +- frontend/content/docs/ci/bitbucket.md | 2 +- frontend/content/docs/ci/buildkite.md | 2 +- frontend/content/docs/ci/circleci.md | 2 +- frontend/content/docs/ci/github-actions.md | 12 ++++++------ frontend/content/docs/ci/gitlab.md | 2 +- frontend/content/docs/ci/jenkins.md | 2 +- frontend/content/docs/ci/semaphore.md | 2 +- frontend/content/docs/ci/teamcity.md | 2 +- frontend/content/docs/ci/travis.md | 2 +- frontend/content/docs/quick-start.md | 2 +- frontend/content/docs/reference/cli.md | 2 +- frontend/content/docs/snapshots/laravel-rust.md | 4 ++-- frontend/public/ci.md | 2 +- gemini-extension.json | 2 +- skills/visualci-bitbucket/SKILL.md | 2 +- skills/visualci-buildkite/SKILL.md | 2 +- skills/visualci-circleci/SKILL.md | 2 +- skills/visualci-github-actions/SKILL.md | 12 ++++++------ skills/visualci-gitlab/SKILL.md | 2 +- skills/visualci-jenkins/SKILL.md | 2 +- skills/visualci-laravel-rust/SKILL.md | 4 ++-- skills/visualci-semaphore/SKILL.md | 2 +- skills/visualci-teamcity/SKILL.md | 2 +- skills/visualci-travis/SKILL.md | 2 +- skills/visualci/SKILL.md | 2 +- 29 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 9bb7c654..74d4d6d6 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -5,7 +5,7 @@ "plugins": [ { "name": "visualci", - "version": "0.1.51", + "version": "0.1.52", "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/", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index ee25fed7..9d46ba5b 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "visualci", - "version": "0.1.51", + "version": "0.1.52", "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/", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 5069e42b..05d70f1a 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "visualci", "displayName": "VisualCI", - "version": "0.1.51", + "version": "0.1.52", "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" diff --git a/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill-2.json b/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill-2.json index adaca8d0..8433f223 100644 --- a/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill-2.json +++ b/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill-2.json @@ -5,7 +5,7 @@ "result": { "content": [ { - "text": "---\nname: visualci-jenkins\ndescription: \"Sets up VisualCI in a Jenkins pipeline (Jenkinsfile): the token as a credential, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel stages. Use when the user wants visual or snapshot review in Jenkins, or a project has a Jenkinsfile and VisualCI. Not for other CI providers, or for writing the tests themselves.\"\nlicense: Apache-2.0\nmetadata:\n docs: https://visualci.com/docs/ci/jenkins.md\n---\n\n\n\n# Jenkins\n\nStore a project token as a **Secret text** credential, say `visualci-token`. The CLI reads the commit from `GIT_COMMIT`, the branch from `CHANGE_BRANCH`, `BRANCH_NAME` or `GIT_BRANCH`, and the pull request from `CHANGE_ID`.\n\n```groovy\npipeline {\n agent any\n environment {\n VISUALCI_TOKEN = credentials('visualci-token')\n }\n stages {\n stage('Test') {\n steps {\n sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR=\"$WORKSPACE/bin\" sh'\n sh '''\n export PATH=\"$WORKSPACE/bin:$PATH\"\n export VISUALCI_BUILD_ID=$(visualci build create)\n npm test -- -u # write snapshots instead of failing; see the snapshot guides\n visualci upload --from auto src tests\n visualci build finalize\n '''\n }\n }\n }\n}\n```\n\nEach `sh` step is its own shell, so keep the build's commands in one step, or pass `VISUALCI_BUILD_ID` on with `withEnv`.\n\n## Parallel stages\n\nCreate the build once, then give each parallel stage a shard number:\n\n```groovy\nstage('Start VisualCI') {\n steps {\n script {\n env.VISUALCI_BUILD_ID = sh(script: 'bin/visualci build create --shards 2', returnStdout: true).trim()\n }\n }\n}\nstage('Tests') {\n parallel {\n stage('Unit') { steps { sh 'npm run test:unit -- -u && bin/visualci upload --from auto src && bin/visualci build finalize --shard 0' } }\n stage('Browser') { steps { sh 'npm run test:e2e && bin/visualci upload screenshots && bin/visualci build finalize --shard 1' } }\n }\n}\n```\n\nSee [Other CI providers](https://visualci.com/docs/ci/other.md) for the environment variables and how shards work.\n\nThis skill is the page https://visualci.com/docs/ci/jenkins.md. All of VisualCI's documentation: https://visualci.com/llms.txt\n", + "text": "---\nname: visualci-jenkins\ndescription: \"Sets up VisualCI in a Jenkins pipeline (Jenkinsfile): the token as a credential, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel stages. Use when the user wants visual or snapshot review in Jenkins, or a project has a Jenkinsfile and VisualCI. Not for other CI providers, or for writing the tests themselves.\"\nlicense: Apache-2.0\nmetadata:\n docs: https://visualci.com/docs/ci/jenkins.md\n---\n\n\n\n# Jenkins\n\nStore a project token as a **Secret text** credential, say `visualci-token`. The CLI reads the commit from `GIT_COMMIT`, the branch from `CHANGE_BRANCH`, `BRANCH_NAME` or `GIT_BRANCH`, and the pull request from `CHANGE_ID`.\n\n```groovy\npipeline {\n agent any\n environment {\n VISUALCI_TOKEN = credentials('visualci-token')\n }\n stages {\n stage('Test') {\n steps {\n sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR=\"$WORKSPACE/bin\" sh'\n sh '''\n export PATH=\"$WORKSPACE/bin:$PATH\"\n export VISUALCI_BUILD_ID=$(visualci build create)\n npm test -- -u # write snapshots instead of failing; see the snapshot guides\n visualci upload --from auto src tests\n visualci build finalize\n '''\n }\n }\n }\n}\n```\n\nEach `sh` step is its own shell, so keep the build's commands in one step, or pass `VISUALCI_BUILD_ID` on with `withEnv`.\n\n## Parallel stages\n\nCreate the build once, then give each parallel stage a shard number:\n\n```groovy\nstage('Start VisualCI') {\n steps {\n script {\n env.VISUALCI_BUILD_ID = sh(script: 'bin/visualci build create --shards 2', returnStdout: true).trim()\n }\n }\n}\nstage('Tests') {\n parallel {\n stage('Unit') { steps { sh 'npm run test:unit -- -u && bin/visualci upload --from auto src && bin/visualci build finalize --shard 0' } }\n stage('Browser') { steps { sh 'npm run test:e2e && bin/visualci upload screenshots && bin/visualci build finalize --shard 1' } }\n }\n}\n```\n\nSee [Other CI providers](https://visualci.com/docs/ci/other.md) for the environment variables and how shards work.\n\nThis skill is the page https://visualci.com/docs/ci/jenkins.md. All of VisualCI's documentation: https://visualci.com/llms.txt\n", "type": "text" } ], diff --git a/frontend/content/docs/ci/bitbucket.md b/frontend/content/docs/ci/bitbucket.md index 36f4dc2f..3c45035f 100644 --- a/frontend/content/docs/ci/bitbucket.md +++ b/frontend/content/docs/ci/bitbucket.md @@ -14,7 +14,7 @@ pipelines: name: Test image: node:24 script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides - visualci upload --from auto src tests diff --git a/frontend/content/docs/ci/buildkite.md b/frontend/content/docs/ci/buildkite.md index aae1cafb..aff2ff31 100644 --- a/frontend/content/docs/ci/buildkite.md +++ b/frontend/content/docs/ci/buildkite.md @@ -11,7 +11,7 @@ The CLI reads the commit from `BUILDKITE_COMMIT`, the branch from `BUILDKITE_BRA steps: - label: ":test_tube: Tests" command: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$$HOME/bin" sh export PATH="$$HOME/bin:$$PATH" export VISUALCI_BUILD_ID=$$(visualci build create) npm test -- -u diff --git a/frontend/content/docs/ci/circleci.md b/frontend/content/docs/ci/circleci.md index 02bb8bdc..849b0674 100644 --- a/frontend/content/docs/ci/circleci.md +++ b/frontend/content/docs/ci/circleci.md @@ -16,7 +16,7 @@ jobs: - checkout - run: name: Install VisualCI - command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh - run: name: Start a VisualCI build command: echo "export VISUALCI_BUILD_ID=$($HOME/bin/visualci build create)" >> "$BASH_ENV" diff --git a/frontend/content/docs/ci/github-actions.md b/frontend/content/docs/ci/github-actions.md index 2e5487dc..93ff39d7 100644 --- a/frontend/content/docs/ci/github-actions.md +++ b/frontend/content/docs/ci/github-actions.md @@ -17,7 +17,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 if: always() with: token: ${{ secrets.VISUALCI_TOKEN }} @@ -50,7 +50,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize: false @@ -62,7 +62,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize-only: true @@ -106,7 +106,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 with: token: ${{ secrets.VISUALCI_TOKEN }} artifact: visualci @@ -174,7 +174,7 @@ jobs: - 'templates/**' - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build # A skipped run sends nothing: --subset carries every snapshot forward. @@ -218,7 +218,7 @@ jobs: fetch-depth: 0 - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build run: echo "VISUALCI_BUILD_ID=$(visualci build create)" >> "$GITHUB_ENV" diff --git a/frontend/content/docs/ci/gitlab.md b/frontend/content/docs/ci/gitlab.md index 80673626..dcf7f961 100644 --- a/frontend/content/docs/ci/gitlab.md +++ b/frontend/content/docs/ci/gitlab.md @@ -13,7 +13,7 @@ visual: variables: GIT_DEPTH: 0 # VisualCI finds the baseline through the commit's ancestors script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u - visualci upload --from auto src tests diff --git a/frontend/content/docs/ci/jenkins.md b/frontend/content/docs/ci/jenkins.md index 12177cd9..d520e3c7 100644 --- a/frontend/content/docs/ci/jenkins.md +++ b/frontend/content/docs/ci/jenkins.md @@ -16,7 +16,7 @@ pipeline { stages { stage('Test') { steps { - sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' + sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' sh ''' export PATH="$WORKSPACE/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/frontend/content/docs/ci/semaphore.md b/frontend/content/docs/ci/semaphore.md index 6eb061dc..a29498a2 100644 --- a/frontend/content/docs/ci/semaphore.md +++ b/frontend/content/docs/ci/semaphore.md @@ -23,7 +23,7 @@ blocks: - name: Test commands: - checkout - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/frontend/content/docs/ci/teamcity.md b/frontend/content/docs/ci/teamcity.md index 09aec9ff..ecaf209b 100644 --- a/frontend/content/docs/ci/teamcity.md +++ b/frontend/content/docs/ci/teamcity.md @@ -16,7 +16,7 @@ The CLI doesn't read TeamCity's parameters by itself: pass them as environment v Then a command-line step: ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$PWD/bin" sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$PWD/bin" sh export PATH="$PWD/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/frontend/content/docs/ci/travis.md b/frontend/content/docs/ci/travis.md index 6be09089..1135d32c 100644 --- a/frontend/content/docs/ci/travis.md +++ b/frontend/content/docs/ci/travis.md @@ -14,7 +14,7 @@ git: depth: false install: - npm ci - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh script: - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/frontend/content/docs/quick-start.md b/frontend/content/docs/quick-start.md index 83ff080d..c886a39a 100644 --- a/frontend/content/docs/quick-start.md +++ b/frontend/content/docs/quick-start.md @@ -25,7 +25,7 @@ On Linux (x86_64 or arm64) or macOS: curl -fsSL https://visualci.com/install.sh | sh ``` -It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.20`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: +It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.22`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: ```sh cargo install --git https://github.com/DocSpring/visualci visualci-cli diff --git a/frontend/content/docs/reference/cli.md b/frontend/content/docs/reference/cli.md index f0c75855..b759338a 100644 --- a/frontend/content/docs/reference/cli.md +++ b/frontend/content/docs/reference/cli.md @@ -3,7 +3,7 @@ title: CLI reference description: Every visualci command and option, and the environment variables the CLI reads. --- -Install it on Linux or macOS with `curl -fsSL https://visualci.com/install.sh | sh` (set `VISUALCI_VERSION=0.2.20` to pin a release, and `VISUALCI_INSTALL_DIR` for somewhere other than `/usr/local/bin`), or anywhere with Rust with `cargo install --git https://github.com/DocSpring/visualci visualci-cli`. `visualci --help` and `visualci --help` print the same options. +Install it on Linux or macOS with `curl -fsSL https://visualci.com/install.sh | sh` (set `VISUALCI_VERSION=0.2.22` to pin a release, and `VISUALCI_INSTALL_DIR` for somewhere other than `/usr/local/bin`), or anywhere with Rust with `cargo install --git https://github.com/DocSpring/visualci visualci-cli`. `visualci --help` and `visualci --help` print the same options. Every command that talks to the server takes `--token` (default `$VISUALCI_TOKEN`, a project token, else the token `visualci login` kept) and `--api-url` (default `$VISUALCI_API_URL`, else `https://api.visualci.com`). With a personal token, it also needs the project: `--project org/project`, `$VISUALCI_PROJECT`, or `project:` in visualci.yml. Errors exit with status 2. `--verbose` prints how long each step takes: hashing the files, each call to the server, and the uploads. diff --git a/frontend/content/docs/snapshots/laravel-rust.md b/frontend/content/docs/snapshots/laravel-rust.md index d56786c2..10b5e121 100644 --- a/frontend/content/docs/snapshots/laravel-rust.md +++ b/frontend/content/docs/snapshots/laravel-rust.md @@ -49,7 +49,7 @@ For snapshots without a browser, `default-features = false` leaves the browser o Then the CLI, and a project token (see [Quick start](/docs/quick-start/)): ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 sh export VISUALCI_TOKEN=vci_... ``` @@ -76,7 +76,7 @@ On GitHub Actions: node-version: 22 - run: npx -y playwright@1.65.2 install --with-deps --only-shell chromium - run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh echo "$HOME/bin" >> "$GITHUB_PATH" - run: visualci test -- cargo test --locked env: diff --git a/frontend/public/ci.md b/frontend/public/ci.md index 352adf7c..26f7d6fe 100644 --- a/frontend/public/ci.md +++ b/frontend/public/ci.md @@ -6,7 +6,7 @@ https://visualci.com/install.md for the whole setup). The token is the CI secret Every provider runs the same three steps around the tests: ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh export VISUALCI_BUILD_ID=$(visualci build create) # run the tests (writing snapshots instead of failing), then: visualci upload # sends visualci.yml's uploads diff --git a/gemini-extension.json b/gemini-extension.json index 1851047f..ff014d49 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,6 +1,6 @@ { "name": "visualci", - "version": "0.1.51", + "version": "0.1.52", "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": { diff --git a/skills/visualci-bitbucket/SKILL.md b/skills/visualci-bitbucket/SKILL.md index 2196fed0..494d2f4f 100644 --- a/skills/visualci-bitbucket/SKILL.md +++ b/skills/visualci-bitbucket/SKILL.md @@ -19,7 +19,7 @@ pipelines: name: Test image: node:24 script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides - visualci upload --from auto src tests diff --git a/skills/visualci-buildkite/SKILL.md b/skills/visualci-buildkite/SKILL.md index f8195867..4b89cba5 100644 --- a/skills/visualci-buildkite/SKILL.md +++ b/skills/visualci-buildkite/SKILL.md @@ -16,7 +16,7 @@ The CLI reads the commit from `BUILDKITE_COMMIT`, the branch from `BUILDKITE_BRA steps: - label: ":test_tube: Tests" command: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$$HOME/bin" sh export PATH="$$HOME/bin:$$PATH" export VISUALCI_BUILD_ID=$$(visualci build create) npm test -- -u diff --git a/skills/visualci-circleci/SKILL.md b/skills/visualci-circleci/SKILL.md index 3d5c98f0..8fbccfba 100644 --- a/skills/visualci-circleci/SKILL.md +++ b/skills/visualci-circleci/SKILL.md @@ -21,7 +21,7 @@ jobs: - checkout - run: name: Install VisualCI - command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh - run: name: Start a VisualCI build command: echo "export VISUALCI_BUILD_ID=$($HOME/bin/visualci build create)" >> "$BASH_ENV" diff --git a/skills/visualci-github-actions/SKILL.md b/skills/visualci-github-actions/SKILL.md index 41d00cd0..c31cc2b5 100644 --- a/skills/visualci-github-actions/SKILL.md +++ b/skills/visualci-github-actions/SKILL.md @@ -22,7 +22,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 if: always() with: token: ${{ secrets.VISUALCI_TOKEN }} @@ -55,7 +55,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize: false @@ -67,7 +67,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize-only: true @@ -111,7 +111,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@v0.2.20 + - uses: DocSpring/visualci/clients/github-action@v0.2.22 with: token: ${{ secrets.VISUALCI_TOKEN }} artifact: visualci @@ -179,7 +179,7 @@ jobs: - 'templates/**' - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build # A skipped run sends nothing: --subset carries every snapshot forward. @@ -223,7 +223,7 @@ jobs: fetch-depth: 0 - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build run: echo "VISUALCI_BUILD_ID=$(visualci build create)" >> "$GITHUB_ENV" diff --git a/skills/visualci-gitlab/SKILL.md b/skills/visualci-gitlab/SKILL.md index fc3274da..caa4ae2b 100644 --- a/skills/visualci-gitlab/SKILL.md +++ b/skills/visualci-gitlab/SKILL.md @@ -18,7 +18,7 @@ visual: variables: GIT_DEPTH: 0 # VisualCI finds the baseline through the commit's ancestors script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u - visualci upload --from auto src tests diff --git a/skills/visualci-jenkins/SKILL.md b/skills/visualci-jenkins/SKILL.md index 1ffbf95b..d3d05725 100644 --- a/skills/visualci-jenkins/SKILL.md +++ b/skills/visualci-jenkins/SKILL.md @@ -21,7 +21,7 @@ pipeline { stages { stage('Test') { steps { - sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' + sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' sh ''' export PATH="$WORKSPACE/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/skills/visualci-laravel-rust/SKILL.md b/skills/visualci-laravel-rust/SKILL.md index 2d884556..9486d02a 100644 --- a/skills/visualci-laravel-rust/SKILL.md +++ b/skills/visualci-laravel-rust/SKILL.md @@ -54,7 +54,7 @@ For snapshots without a browser, `default-features = false` leaves the browser o Then the CLI, and a project token (see [Quick start](https://visualci.com/docs/quick-start.md)): ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 sh export VISUALCI_TOKEN=vci_... ``` @@ -81,7 +81,7 @@ On GitHub Actions: node-version: 22 - run: npx -y playwright@1.65.2 install --with-deps --only-shell chromium - run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh echo "$HOME/bin" >> "$GITHUB_PATH" - run: visualci test -- cargo test --locked env: diff --git a/skills/visualci-semaphore/SKILL.md b/skills/visualci-semaphore/SKILL.md index c6716391..2e88627b 100644 --- a/skills/visualci-semaphore/SKILL.md +++ b/skills/visualci-semaphore/SKILL.md @@ -28,7 +28,7 @@ blocks: - name: Test commands: - checkout - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/skills/visualci-teamcity/SKILL.md b/skills/visualci-teamcity/SKILL.md index 0fb58efe..85d544e6 100644 --- a/skills/visualci-teamcity/SKILL.md +++ b/skills/visualci-teamcity/SKILL.md @@ -21,7 +21,7 @@ The CLI doesn't read TeamCity's parameters by itself: pass them as environment v Then a command-line step: ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$PWD/bin" sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$PWD/bin" sh export PATH="$PWD/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/skills/visualci-travis/SKILL.md b/skills/visualci-travis/SKILL.md index ec14f885..9b78541f 100644 --- a/skills/visualci-travis/SKILL.md +++ b/skills/visualci-travis/SKILL.md @@ -19,7 +19,7 @@ git: depth: false install: - npm ci - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.20 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.22 VISUALCI_INSTALL_DIR="$HOME/bin" sh script: - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/skills/visualci/SKILL.md b/skills/visualci/SKILL.md index 4d9b9c67..41ce123c 100644 --- a/skills/visualci/SKILL.md +++ b/skills/visualci/SKILL.md @@ -30,7 +30,7 @@ On Linux (x86_64 or arm64) or macOS: curl -fsSL https://visualci.com/install.sh | sh ``` -It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.20`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: +It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.22`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: ```sh cargo install --git https://github.com/DocSpring/visualci visualci-cli