From 316bbbfb0428b9c2f4362f7d9ebec608068789cd Mon Sep 17 00:00:00 2001 From: David LJ Date: Tue, 26 Nov 2024 11:15:43 +0100 Subject: [PATCH] ci: generate data before testing --- .github/workflows/reusable-test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-test.yml b/.github/workflows/reusable-test.yml index caa8f663..3dac3a0a 100644 --- a/.github/workflows/reusable-test.yml +++ b/.github/workflows/reusable-test.yml @@ -33,11 +33,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Setup uses: ./.github/actions/setup - - name: Generate simple icons and font subset files + - name: Generate data run: | pnpm run --filter scripts build pnpm run --filter scripts generate:font-subsets pnpm run --filter scripts generate:simple-icons + pnpm run --filter scripts generate:templated-files + touch data/generated/release.json - name: Run tests run: cd .ci && make unit-test - name: Upload coverage results @@ -80,10 +82,15 @@ jobs: # In that scenario, `cypress run` does not install it again and errors - name: Cypress install run: pnpm cypress install - - name: Generate font subsets + - name: Generate data run: | pnpm run --filter scripts build pnpm run --filter scripts generate:font-subsets + pnpm run --filter scripts generate:simple-icons + pnpm run --filter scripts generate:templated-files + touch data/generated/release.json + - name: Data tasks + run: pnpm run data - name: Cypress run uses: cypress-io/github-action@v6 with: