Skip to content

Commit

Permalink
ci: generate data before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Nov 26, 2024
1 parent 08e1729 commit 316bbbf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/reusable-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 316bbbf

Please sign in to comment.