From 4bc2ad476fd9307122fd1ee64ce91401f6827940 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 28 Nov 2024 09:35:21 +0100 Subject: [PATCH] ci: Check generated assets are up-to-date Signed-off-by: provokateurin --- .github/workflows/generate.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index c371c1ea33d..cd8bb310dda 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -87,3 +87,30 @@ jobs: run: | ./tool/generate-specs.sh git --no-pager diff --exit-code + + assets: + name: Assets + runs-on: ubuntu-24.04 + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + fetch-depth: 0 + - name: Submodules + run: git submodule update --init --depth 0 + + - name: Install inkscape and imagemagick + run: sudo apt install -y inkscape imagemagick --no-install-recommends + - name: Install dart + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # v1 + with: + sdk: 3.5 + - name: Setup + run: ./tool/setup.sh + + - name: Generate assets + run: | + ./tool/generate-assets.sh + # The changes to this file are not stable, so we have to ignore them before checking if anything else changed. + git checkout packages/neon_framework/example/web/index.html + git --no-pager diff --exit-code