From 9a126519f26203b1c574379e7ad75ebe0a3b4d78 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Wed, 10 Apr 2024 10:09:30 -0700 Subject: [PATCH] ci: Add job to fail on changes to generated icons (#1136) This adds a job that fails if the output of pnpm rebuild:icons results in any diffs, which indicates that a generated icon component was changed without the underlying raw icon being the source. This prevents the need for #1135. --- .github/workflows/ci.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e55ae53ac8..c972a4551d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -123,6 +123,21 @@ jobs: run: pnpm test working-directory: packages/boxel-ui/test-app + boxel-ui-raw-icon-changes-only: + name: Boxel UI ensure raw icon changes only + runs-on: ubuntu-latest + concurrency: + group: boxel-ui-raw-icon-changes-only-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/init + - name: Rebuild boxel-ui icons + run: pnpm rebuild:icons + working-directory: packages/boxel-ui/addon + - name: Fail if generated icons have been changed without underlying raw icon changing + run: git diff --exit-code + host-test: name: Host Tests runs-on: ubuntu-latest