mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
031219a757
Since yesterday all our windows bots are dying while trying to install npm@8. Turns out this is due to recent release of npm@8.4. This patch moves our CI to use npm@8.3 https://github.com/npm/cli/issues/4341
35 lines
680 B
YAML
35 lines
680 B
YAML
name: "infra"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
|
|
jobs:
|
|
doc-and-lint:
|
|
name: "docs & lint"
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 12
|
|
- run: npm i -g npm@8.3
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npx playwright install-deps
|
|
- run: npx playwright install
|
|
- run: npm run lint
|
|
- name: Verify clean tree
|
|
run: |
|
|
if [[ -n $(git status -s) ]]; then
|
|
echo "ERROR: tree is dirty after npm run build:"
|
|
git diff
|
|
exit 1
|
|
fi
|