WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

feat: button toggle group #9869

feat: button toggle group

feat: button toggle group #9869

Workflow file for this run

name: "Unit Tests"
on:
pull_request:
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# Detect which projects have changed
detect-changes:
uses: ./.github/workflows/_check-workspaces-changes.yaml
test:
needs: detect-changes
name: "[⚛️ REACT] Unit Tests"
if: |
needs.detect-changes.outputs.package_react == 'true' &&
github.head_ref != 'release-please--branches--master' &&
!contains(github.event.pull_request.labels.*.name, 'autorelease')
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
## Set repository to correctly checkout from forks
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
- uses: ./.github/actions/setup-node-pnpm
with:
node-version: "22.x"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build core package
run: pnpm --filter @factorialco/f0-core build
- name: Run type checking
run: pnpm --filter @factorialco/f0-react run tsc
- name: Run tests
run: pnpm --filter @factorialco/f0-react run vitest:ci --coverage.enabled true
- name: "Report Coverage"
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: packages/react
# ------------------------------------------------------------------------------
test-react-native:
needs: detect-changes
name: "[📱 REACT NATIVE] Unit Tests"
if: |
needs.detect-changes.outputs.package_react_native == 'true'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
- uses: ./.github/actions/setup-node-pnpm
with:
node-version: "22.x"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build core package
run: pnpm --filter @factorialco/f0-core build
- name: Run tests
run: pnpm --filter @factorialco/f0-react-native run test