Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/lukebennett88/luke-ui. ui.lukebennett.dev
Something went wrong. Try again.
YAML
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142name: Test
on: pull_request: push: branches: - main workflow_dispatch: inputs: react-spec: description: Published @luke-ui/react version or dist-tag for consumer-tests. Leave empty to pack the branch. required: false type: string
concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true
env: TURBO_TELEMETRY_DISABLED: '1'
jobs: component-tests: name: component-tests runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repo uses: actions/checkout@v7 with: fetch-depth: 0
- name: Setup tooling uses: pnpm/setup@v3 with: cache: true install: false
- name: Install dependencies run: pnpm install --frozen-lockfile --no-runtime
- name: Install Playwright Chromium run: pnpm --filter @luke-ui/react exec playwright install --with-deps chromium
- name: Build package run: pnpm build:packages
- name: Run component tests run: pnpm --filter @luke-ui/react run test
consumer-tests: name: consumer-tests runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repo uses: actions/checkout@v7 with: fetch-depth: 0
- name: Setup tooling uses: pnpm/setup@v3 with: cache: true install: false
- name: Install dependencies run: pnpm install --frozen-lockfile --no-runtime
- name: Install Playwright Chromium run: pnpm --filter @luke-ui/react exec playwright install --with-deps chromium
- name: Build package run: pnpm build:packages
- name: Run consumer tests run: pnpm --filter @luke-ui/react run test:consumer:run env: LUKE_UI_REACT_SPEC: ${{ inputs.react-spec }}
docs-tests: name: docs-tests runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repo uses: actions/checkout@v7 with: fetch-depth: 0
- name: Setup tooling uses: pnpm/setup@v3 with: cache: true install: false
- name: Install dependencies run: pnpm install --frozen-lockfile --no-runtime
- name: Install Playwright Chromium run: pnpm --filter docs exec playwright install --with-deps chromium
- name: Build package run: pnpm build:packages
- name: Generate docs app files run: pnpm --filter docs run generate
- name: Run docs tests run: pnpm --filter docs run test
reference-app-tests: name: reference-app-tests runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repo uses: actions/checkout@v7 with: fetch-depth: 0
- name: Setup tooling uses: pnpm/setup@v3 with: cache: true install: false
- name: Install dependencies run: pnpm install --frozen-lockfile --no-runtime
- name: Install Playwright Chromium run: pnpm --filter @luke-ui/react exec playwright install --with-deps chromium
- name: Run reference app tests run: TURBO_FORCE=true pnpm exec turbo run test --filter=reference-app