Delete measure-size.ts #746
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: Run Tests & Linters | |
| on: | |
| push: | |
| branches: "*" | |
| pull_request: | |
| branches: "*" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_COLOR: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install Dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Prepare wouter-preact (copy source files) | |
| run: bun run --cwd packages/wouter-preact prepublishOnly | |
| - name: Run test | |
| run: bun test --coverage --coverage-reporter=lcov --coverage-reporter=text | |
| - name: Run type check | |
| run: bun run test-types | |
| - name: Lint Sources with ESLint | |
| run: bun run lint | |
| - name: Upload Coverage to Coveralls | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| file: ./coverage/lcov.info | |
| react-compatibility: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| react: ["18.2.0", "18.3.1", "19.0.0"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install --frozen-lockfile | |
| - name: Install the React version under test | |
| run: bun add --dev --exact react@${{ matrix.react }} react-dom@${{ matrix.react }} | |
| - name: Test supported React versions | |
| run: bun test packages/wouter/test | |
| typescript-consumers: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| typescript: ["5.2.2", "workspace"] | |
| react-types: ["18", "19"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install --frozen-lockfile | |
| - name: Install React declarations under test | |
| run: bun add --dev @types/react@${{ matrix.react-types }} @types/react-dom@${{ matrix.react-types }} | |
| - name: Install the minimum supported TypeScript version | |
| if: matrix.typescript != 'workspace' | |
| run: bun add --dev --exact typescript@${{ matrix.typescript }} | |
| - name: Check strict React and Preact consumers | |
| run: bun run test-types:consumer |