fix: add fallback if import.meta.resolve is not present in getResolvedInjectedPackage
#3659
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches-ignore: | |
| - release-v2 | |
| - v2 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-ubuntu: | |
| name: test (ubuntu-latest) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Get Playwright Version | |
| id: playwright-version | |
| shell: bash | |
| run: echo "version=$(pnpm --filter @remix-run/ui exec playwright --version | cut -d ' ' -f2)" >> $GITHUB_OUTPUT | |
| - name: Cache Playwright Browsers | |
| uses: actions/cache@v5 | |
| id: cache-browsers | |
| continue-on-error: true | |
| with: | |
| path: | | |
| ~/.cache/ms-playwright | |
| key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} | |
| - name: Install Playwright Browsers | |
| if: steps.cache-browsers.outputs.cache-hit != 'true' | |
| run: pnpm --filter @remix-run/ui exec playwright install --with-deps | |
| - name: Run tests | |
| run: pnpm test | |
| test-bun-main: | |
| name: test (bun, ubuntu-latest) | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: pnpm | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run Bun tests | |
| run: pnpm test:bun | |
| test-windows-pr: | |
| name: test (windows-latest, changed packages) | |
| if: github.event_name == 'pull_request' | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Get Playwright Version | |
| id: playwright-version | |
| shell: bash | |
| run: echo "version=$(pnpm --filter @remix-run/ui exec playwright --version | cut -d ' ' -f2)" >> $GITHUB_OUTPUT | |
| - name: Cache Playwright Browsers | |
| uses: actions/cache@v5 | |
| id: cache-browsers | |
| continue-on-error: true | |
| with: | |
| path: ~/AppData/Local/ms-playwright | |
| key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} | |
| - name: Install Playwright Browsers | |
| if: steps.cache-browsers.outputs.cache-hit != 'true' | |
| run: pnpm --filter @remix-run/ui exec playwright install --with-deps | |
| - name: Run changed package tests | |
| run: node ./scripts/detect-changed-packages.ts origin/${{ github.base_ref }} | |
| test-windows-main: | |
| name: test (windows-latest) | |
| if: github.event_name == 'push' | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Get Playwright Version | |
| id: playwright-version | |
| shell: bash | |
| run: echo "version=$(pnpm --filter @remix-run/ui exec playwright --version | cut -d ' ' -f2)" >> $GITHUB_OUTPUT | |
| - name: Cache Playwright Browsers | |
| uses: actions/cache@v5 | |
| id: cache-browsers | |
| continue-on-error: true | |
| with: | |
| path: ~/AppData/Local/ms-playwright | |
| key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} | |
| - name: Install Playwright Browsers | |
| if: steps.cache-browsers.outputs.cache-hit != 'true' | |
| run: pnpm --filter @remix-run/ui exec playwright install --with-deps | |
| - name: Run tests | |
| run: pnpm --parallel --filter "!remix-the-web" run test |