mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: "infra"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- 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
|
|
- uses: microsoft/playwright-github-action@v1
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- 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
|
|
|
|
build-playwright-driver:
|
|
name: "build-playwright-driver"
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 12
|
|
- uses: microsoft/playwright-github-action@v1
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: node utils/build/update_canary_version.js --today-date
|
|
- run: utils/build/build-playwright-driver.sh
|