mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-22 20:49:29 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08af2afa13 | ||
|
|
a8594ea335 |
@@ -21,7 +21,7 @@ jobs:
|
||||
# also runs with require-craft-fonts: true, so the build script enforces actual required faces.
|
||||
# Keep this pin identical to gate, freebsd.yml and release.yml.
|
||||
font-pin:
|
||||
runs-on: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && 'artcraft-k8s-main' || 'ubuntu-latest' }}
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
# Same craft-fonts commit as release.yml.
|
||||
CRAFT_FONTS_REF: 37827adc41fd165f9a9234ac40f94dbad353aa69
|
||||
@@ -57,7 +57,6 @@ jobs:
|
||||
# Tracks @main so suite-wide CI fixes reach every app without a PR in each repository.
|
||||
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
|
||||
with:
|
||||
os: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && '["artcraft-k8s-main"]' || '["ubuntu-24.04"]' }}
|
||||
# Same craft-fonts commit as release.yml.
|
||||
craft-fonts-ref: 37827adc41fd165f9a9234ac40f94dbad353aa69
|
||||
require-craft-fonts: true
|
||||
|
||||
@@ -18,7 +18,7 @@ env:
|
||||
jobs:
|
||||
lockfile:
|
||||
name: Lockfile is in sync
|
||||
runs-on: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && 'artcraft-k8s-main' || 'ubuntu-24.04' }}
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Harden runner
|
||||
|
||||
@@ -2374,15 +2374,6 @@ fn pptx_potx_ppsx_export_parity_preserves_masters_charts_themes_and_timing() {
|
||||
..Default::default()
|
||||
});
|
||||
|
||||
let edited_values = vec![Some(111.5), Some(222.25), Some(333.75), Some(444.0)];
|
||||
let chart_slide_idx = p.slides.iter().position(|sl| sl.shapes.iter().any(|s| s.name == "Chart 0")).expect("chart slide");
|
||||
{
|
||||
let ch_shape = Arc::make_mut(&mut p.slides[chart_slide_idx]).shapes.iter_mut().find(|s| s.name == "Chart 0").expect("Chart 0");
|
||||
ch_shape.name = "Revenue Chart".into();
|
||||
let ShapeKind::Chart(ch) = &mut ch_shape.kind else { panic!("expected chart") };
|
||||
ch.series[0].values = edited_values.clone();
|
||||
}
|
||||
|
||||
for (ext, expected_ct) in [
|
||||
("pptx", "presentationml.presentation.main+xml"),
|
||||
("potx", "presentationml.template.main+xml"),
|
||||
@@ -2401,8 +2392,5 @@ fn pptx_potx_ppsx_export_parity_preserves_masters_charts_themes_and_timing() {
|
||||
let cue = reopened.slides[0].shapes.iter().find(|s| s.name == "Cue").expect("cue");
|
||||
let ShapeKind::Media(clip) = &cue.kind else { panic!("expected media") };
|
||||
assert!(clip.autoplay && clip.loop_play && (clip.volume - 0.5).abs() < 1e-3);
|
||||
let chart_shape = reopened.slides[chart_slide_idx].shapes.iter().find(|s| s.name == "Revenue Chart").expect("named chart");
|
||||
let ShapeKind::Chart(chart) = &chart_shape.kind else { panic!("expected chart") };
|
||||
assert_eq!(chart.series[0].values, edited_values, "{ext}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user