Skip to content

Update scripts/ to use typescript #1178

Update scripts/ to use typescript

Update scripts/ to use typescript #1178

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches-ignore:
- release-v2
- v2
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 24
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/interaction exec playwright --version | cut -d ' ' -f2)" >> $GITHUB_OUTPUT
- name: Cache Playwright Browsers
uses: actions/cache@v4
id: cache-browsers
with:
path: |
~/.cache/ms-playwright
~/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/interaction exec playwright install --with-deps
- name: Run tests
run: pnpm test