Use ESM for next.config (#792) #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: CI Setup | |
| uses: ./.github/actions/ci-setup | |
| - name: Build packages | |
| run: pnpm --filter "@radix-ui/*" build | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: build-output | |
| path: | | |
| packages/*/dist | |
| packages/radix-ui-themes/layout | |
| packages/radix-ui-themes/tokens | |
| packages/radix-ui-themes/*.css | |
| retention-days: 1 | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: CI Setup | |
| uses: ./.github/actions/ci-setup | |
| - name: Lint | |
| run: pnpm --filter "@radix-ui/*" lint | |
| format: | |
| name: Check Formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: CI Setup | |
| uses: ./.github/actions/ci-setup | |
| - name: Check formatting | |
| run: pnpm format:check | |
| test-vr: | |
| name: 'Tests: Visual regression' | |
| needs: build | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: CI Setup | |
| uses: ./.github/actions/ci-setup | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: build-output | |
| path: packages | |
| - name: Install Playwright Browsers | |
| run: pnpm --filter "playground" exec playwright install --with-deps | |
| - name: Run Visual Regression Tests | |
| run: pnpm test:vr | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: playwright-report | |
| path: apps/playground/test-results/ | |
| retention-days: 30 |