Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 23 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,35 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22.x
cache: pnpm

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Install Playwright browsers
run: npx playwright install
run: pnpm exec playwright install --with-deps chromium firefox

- name: Type check
run: npm run type-check
run: pnpm run type-check

- name: Build
run: npm run build
run: pnpm run build

- name: Lint
run: npm run lint
run: pnpm run lint

- name: Format check
run: npm run format
run: pnpm run format

- name: Run tests
run: npm run test
run: pnpm run test

- name: Check for unstaged changes
run: |
Expand All @@ -58,41 +62,45 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22.x
cache: pnpm

- name: Install root dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Install dependencies
working-directory: tools/playwright
run: npm ci
run: pnpm install --frozen-lockfile

- name: Install Playwright browsers
working-directory: tools/playwright
run: npx playwright install --with-deps chromium
run: pnpm exec playwright install --with-deps chromium

- name: Type check
working-directory: tools/playwright
run: npm run type-check
run: pnpm run type-check

- name: Build
working-directory: tools/playwright
run: npm run build
run: pnpm run build

- name: Lint
working-directory: tools/playwright
run: npm run lint
run: pnpm run lint

- name: Format check
working-directory: tools/playwright
run: npm run format
run: pnpm run format

- name: Run tests
working-directory: tools/playwright
run: npm run test
run: pnpm run test

- name: Check for unstaged changes
run: |
Expand Down
14 changes: 9 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ extends:
displayName: Use Node 22.x
inputs:
versionSpec: 22.x
- script: |
npm install
displayName: npm install
- script: |
corepack enable
corepack prepare pnpm@11.5.3 --activate
displayName: Enable pnpm via corepack
- script: |
pnpm install --frozen-lockfile
displayName: pnpm install

- task: CmdLine@2
displayName: Authenticate git for pushes
Expand All @@ -76,14 +80,14 @@ extends:
displayName: Publish (official)
condition: and(eq(variables.skipPublish, false), eq(variables.prerelease, false))
inputs:
script: 'npm run release -- $(publishVersion) --ci '
script: 'pnpm run release -- $(publishVersion) --ci '
env:
NPM_TOKEN: $(npmToken)

- task: CmdLine@2
displayName: Publish (prerelease)
condition: and(eq(variables.skipPublish, false), eq(variables.prerelease, true))
inputs:
script: npm run release -- $(publishVersion) --preRelease $(prereleaseTag) --ci
script: pnpm run release -- $(publishVersion) --preRelease $(prereleaseTag) --ci
env:
NPM_TOKEN: $(npmToken)
Loading
Loading