Skip to content

feat(cli,react): generate data-color typings based on tokens #975

feat(cli,react): generate data-color typings based on tokens

feat(cli,react): generate data-color typings based on tokens #975

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/test.yml
- 'packages/**'
- 'apps/storybook/**'
permissions:
checks: write
# Required to put a comment into the pull-request
pull-requests: write
jobs:
checks:
name: Build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/gh-setup
- name: Build
run: yarn build
- name: Types
run: yarn types:react
- name: Test
run: yarn test
- name: 'Report Coverage'
if: success() || failure()
uses: davelosert/vitest-coverage-report-action@v2
- name: Publish unit test report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: 'test-report.xml'
detailed_summary: true
check_name: Unit Test Report
check_annotations: true
check_title_template: '{{FILE_NAME}} / {{TEST_NAME}}'
- name: Test CLI (create tokens, then build the theme)
run: yarn test:cli
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build storybook
run: yarn build:storybook
- name: Run Storybook tests
run: yarn test:storybook
- name: Replace relative paths in test report
uses: jacobtomlinson/gha-find-replace@v3
if: success() || failure()
with:
include: 'apps/storybook/test-report.xml'
find: '../../'
replace: ''
regex: false
- name: Publish Storybook test report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: 'apps/storybook/test-report.xml'
detailed_summary: true
check_name: Storybook Test Report
check_annotations: true
check_title_template: '{{FILE_NAME}} / {{TEST_NAME}}'