From 3fe0abaef0bad166b54a0b02b1acf05616cf1247 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 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/reusable-test.yml b/.github/workflows/reusable-test.yml index caa8f663..e90dcb7f 100644 --- a/.github/workflows/reusable-test.yml +++ b/.github/workflows/reusable-test.yml @@ -33,11 +33,8 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Setup uses: ./.github/actions/setup - - name: Generate simple icons and font subset files - run: | - pnpm run --filter scripts build - pnpm run --filter scripts generate:font-subsets - pnpm run --filter scripts generate:simple-icons + - name: Data tasks + run: pnpm run data - name: Run tests run: cd .ci && make unit-test - name: Upload coverage results @@ -80,10 +77,8 @@ jobs: # In that scenario, `cypress run` does not install it again and errors - name: Cypress install run: pnpm cypress install - - name: Generate font subsets - run: | - pnpm run --filter scripts build - pnpm run --filter scripts generate:font-subsets + - name: Data tasks + run: pnpm run data - name: Cypress run uses: cypress-io/github-action@v6 with: