Create a testing library for ui-extensions (proof of concept) #15268
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: [push] | |
| jobs: | |
| type-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/actions/prepare | |
| - id: typescript-cache | |
| name: Restore TypeScript cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| packages/*/build/ts | |
| packages/*/build/*.tsbuildinfo | |
| key: ${{ runner.os }}-typescript-v1-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-typescript-v1- | |
| - name: Type check | |
| run: yarn type-check | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/actions/prepare | |
| - id: eslint-cache | |
| name: Restore ESLint cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .loom/cache/eslint | |
| key: ${{ runner.os }}-eslint-v1-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-eslint-v1- | |
| - name: Lint | |
| run: yarn lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/actions/prepare | |
| - name: Build packages | |
| run: yarn build | |
| - name: Typecheck ui-extensions-tester (including tests) | |
| run: npx tsc --project packages/ui-extensions-tester/tsconfig.typecheck.json | |
| - name: Test ui-extensions-tester | |
| run: npx loom test --no-watch packages/ui-extensions-tester/ | |
| test-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/actions/prepare | |
| - id: test-build | |
| name: Build docs locally to ensure they can be built in CI | |
| run: yarn docs:admin |