mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-04 17:35:48 +03:00
We need to commit `package-lock.json` to repository to ensure reproducible builds. This also starts using [`npm ci`](https://docs.npmjs.com/cli/ci.html) to install dependencies. Drive-by: remove non-functioning `rebase` workflow.
This commit is contained in:
parent
c2fe55e630
commit
193582445d
@ -6,7 +6,7 @@ build: off
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: Install-Product node $env:nodejs_version
|
- ps: Install-Product node $env:nodejs_version
|
||||||
- npm install
|
- npm ci
|
||||||
- npm run ctest
|
- npm run ctest
|
||||||
- npm run wtest
|
- npm run wtest
|
||||||
- npm run ftest
|
- npm run ftest
|
||||||
|
@ -10,7 +10,7 @@ jobs:
|
|||||||
key: dependency-cache-{{ checksum "package.json" }}
|
key: dependency-cache-{{ checksum "package.json" }}
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
command: npm install
|
command: npm ci
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: dependency-cache-{{ checksum "package.json" }}
|
key: dependency-cache-{{ checksum "package.json" }}
|
||||||
|
2
.github/workflows/infra.yml
vendored
2
.github/workflows/infra.yml
vendored
@ -25,5 +25,5 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libgbm-dev
|
sudo apt-get install libgbm-dev
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
|
24
.github/workflows/rebase.yml
vendored
24
.github/workflows/rebase.yml
vendored
@ -1,24 +0,0 @@
|
|||||||
on:
|
|
||||||
issue_comment:
|
|
||||||
types: [created]
|
|
||||||
name: Automatic Rebase
|
|
||||||
jobs:
|
|
||||||
rebase:
|
|
||||||
name: Rebase
|
|
||||||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Automatic Rebase
|
|
||||||
uses: cirrus-actions/rebase@1.2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
|
|
||||||
always_job:
|
|
||||||
name: Always run job
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Always run
|
|
||||||
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."
|
|
20
.github/workflows/tests.yml
vendored
20
.github/workflows/tests.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: install xvfb
|
- name: install xvfb
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
- run: xvfb-run --auto-servernum -- bash -c "npm run ccoverage 2>./chromium-linux-testrun.log"
|
- run: xvfb-run --auto-servernum -- bash -c "npm run ccoverage 2>./chromium-linux-testrun.log"
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run ctest 2>./chromium-mac-testrun.log
|
- run: npm run ctest 2>./chromium-mac-testrun.log
|
||||||
env:
|
env:
|
||||||
DEBUG: "*"
|
DEBUG: "*"
|
||||||
@ -82,7 +82,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run ctest 2>./chromium-win-testrun.log
|
- run: npm run ctest 2>./chromium-win-testrun.log
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
@ -113,7 +113,7 @@ jobs:
|
|||||||
- name: install xvfb
|
- name: install xvfb
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
- run: xvfb-run --auto-servernum -- bash -c "npm run wcoverage 2>./webkit-linux-testrun.log"
|
- run: xvfb-run --auto-servernum -- bash -c "npm run wcoverage 2>./webkit-linux-testrun.log"
|
||||||
@ -142,7 +142,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run wtest 2>./webkit-mac-testrun.log
|
- run: npm run wtest 2>./webkit-mac-testrun.log
|
||||||
env:
|
env:
|
||||||
DEBUG: "*,-pw:wrapped*"
|
DEBUG: "*,-pw:wrapped*"
|
||||||
@ -169,7 +169,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run wtest 2>./webkit-win-testrun.log
|
- run: npm run wtest 2>./webkit-win-testrun.log
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
@ -200,7 +200,7 @@ jobs:
|
|||||||
- name: install xvfb
|
- name: install xvfb
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
- run: xvfb-run --auto-servernum -- bash -c "npm run fcoverage 2>./firefox-linux-testrun.log"
|
- run: xvfb-run --auto-servernum -- bash -c "npm run fcoverage 2>./firefox-linux-testrun.log"
|
||||||
@ -229,7 +229,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run ftest 2>./firefox-mac-testrun.log
|
- run: npm run ftest 2>./firefox-mac-testrun.log
|
||||||
env:
|
env:
|
||||||
DEBUG: "*"
|
DEBUG: "*"
|
||||||
@ -256,7 +256,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run ftest 2>./firefox-win-testrun.log
|
- run: npm run ftest 2>./firefox-win-testrun.log
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
@ -285,5 +285,5 @@ jobs:
|
|||||||
# we use in `installation-tests.sh`.
|
# we use in `installation-tests.sh`.
|
||||||
node-version: 12
|
node-version: 12
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: bash test/installation-tests/installation-tests.sh
|
- run: bash test/installation-tests/installation-tests.sh
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,7 +9,6 @@
|
|||||||
*.swp
|
*.swp
|
||||||
*.pyc
|
*.pyc
|
||||||
.vscode
|
.vscode
|
||||||
package-lock.json
|
|
||||||
yarn.lock
|
yarn.lock
|
||||||
/node6
|
/node6
|
||||||
/src/generated/*
|
/src/generated/*
|
||||||
|
@ -26,6 +26,8 @@ addons:
|
|||||||
- xvfb
|
- xvfb
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
install:
|
||||||
|
- npm ci
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
5769
package-lock.json
generated
Normal file
5769
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user