fix(release): exclude docker build metadata from release assets

This commit is contained in:
Kayshen-X 2026-07-09 22:43:33 +08:00
parent 220d5991d6
commit 6b2aa18db6
2 changed files with 15 additions and 0 deletions

View file

@ -567,6 +567,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: openpencil-*
- name: Flatten artifacts
shell: bash
run: |

View file

@ -185,6 +185,20 @@ fn release_workflow_distinguishes_published_npm_packages_from_check_failures() {
);
}
#[test]
fn release_workflow_downloads_only_openpencil_release_artifacts() {
let workflow = std::fs::read_to_string(concat!(
env!("CARGO_MANIFEST_DIR"),
"/../../.github/workflows/rust-release.yml"
))
.expect("rust-release workflow is readable");
assert!(
workflow.contains("pattern: openpencil-*"),
"release workflow should not download Docker build metadata artifacts into release assets"
);
}
#[test]
fn web_smoke_page_uses_current_canvaskit_bundle_command() {
let smoke = std::fs::read_to_string(concat!(env!("CARGO_MANIFEST_DIR"), "/smoke/step-1b.html"))