Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: re-factor github workflow internal structure (#956)

Andrey Lushnikov5956df58f89c
diff --git a/.github/workflows/chromium-linux.yml b/.github/workflows/chromium-linux.yml
deleted file mode 100644
index 2384d374ef..0000000000
--- a/.github/workflows/chromium-linux.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: "tests: Linux + CR"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: ubuntu-18.04
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: install required packages
- run: |
- sudo apt-get update
- sudo apt-get install libgbm-dev
- sudo apt-get install xvfb
-
- - name: npm install, build, and test
- run: |
- npm install
- xvfb-run --auto-servernum npm run ctest
- env:
- CI: true
diff --git a/.github/workflows/chromium-mac.yml b/.github/workflows/chromium-mac.yml
deleted file mode 100644
index 438929e9fa..0000000000
--- a/.github/workflows/chromium-mac.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: "tests: Mac + CR"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: macos
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
-
- - name: npm install, and test
- run: |
- npm install
- npm run ctest
- env:
- CI: true
diff --git a/.github/workflows/chromium-windows.yml b/.github/workflows/chromium-windows.yml
deleted file mode 100644
index 6d00f86ab9..0000000000
--- a/.github/workflows/chromium-windows.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: "tests: Win + CR"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: windows-latest
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
-
- - name: npm install, and test
- run: |
- npm install
- npm run ctest
- env:
- CI: true
diff --git a/.github/workflows/docs-and-lint.yml b/.github/workflows/docs-and-lint.yml
deleted file mode 100644
index 798979215d..0000000000
--- a/.github/workflows/docs-and-lint.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: "docs & lint"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: ubuntu-18.04
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: install required packages
- run: |
- sudo apt-get update
- sudo apt-get install libgbm-dev
- sudo apt-get install xvfb
-
- - name: npm install, build, and test
- run: |
- npm install
- npm run lint
- env:
- CI: true
diff --git a/.github/workflows/firefox-linux.yml b/.github/workflows/firefox-linux.yml
deleted file mode 100644
index 860556535b..0000000000
--- a/.github/workflows/firefox-linux.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-name: "tests: Linux + FF"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: ubuntu-18.04
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: install required packages
- run: |
- sudo apt-get install xvfb
-
- - name: npm install, build, and test
- run: |
- npm install
- xvfb-run --auto-servernum npm run ftest
- env:
- CI: true
diff --git a/.github/workflows/firefox-mac.yml b/.github/workflows/firefox-mac.yml
deleted file mode 100644
index 9d70c398be..0000000000
--- a/.github/workflows/firefox-mac.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: "tests: Mac + FF"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: macos
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
-
- - name: npm install, and test
- run: |
- npm install
- npm run ftest
- env:
- CI: true
diff --git a/.github/workflows/firefox-windows.yml b/.github/workflows/firefox-windows.yml
deleted file mode 100644
index 3f727e170d..0000000000
--- a/.github/workflows/firefox-windows.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: "tests: Win + FF"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: windows-latest
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
-
- - name: npm install, and test
- run: |
- npm install
- npm run ftest
- env:
- CI: true
diff --git a/.github/workflows/infra.yml b/.github/workflows/infra.yml
new file mode 100644
index 0000000000..854c542636
--- /dev/null
+++ b/.github/workflows/infra.yml
@@ -0,0 +1,29 @@
+name: "infra"
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+env:
+ CI: true
+
+jobs:
+ doc-and-lint:
+ name: "docs & lint"
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - name: install required packages
+ run: |
+ sudo apt-get update
+ sudo apt-get install libgbm-dev
+ sudo apt-get install xvfb
+ - run: npm install
+ - run: npm run lint
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000000..5b54d5343f
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,125 @@
+name: tests
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+env:
+ CI: true
+
+jobs:
+ tests_linux_chromium:
+ name: "Linux + CR"
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - name: install required packages
+ run: |
+ sudo apt-get update
+ sudo apt-get install libgbm-dev xvfb
+ - run: npm install
+ - run: xvfb-run --auto-servernum npm run ctest
+
+ tests_linux_firefox:
+ name: "Linux + FF"
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - name: install required packages
+ run: |
+ sudo apt-get update
+ sudo apt-get install xvfb
+ - run: npm install
+ - run: xvfb-run --auto-servernum npm run ftest
+
+ tests_linux_webkit:
+ name: "Linux + WK"
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - name: install required packages
+ run: |
+ sudo apt-get update
+ sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 libevent-2.1-6 libnotify4 libxslt1.1
+ sudo apt-get install xvfb
+ - run: npm install
+ - run: xvfb-run --auto-servernum npm run wtest
+
+ tests_win_chromium:
+ name: "Win + CR"
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - run: npm install
+ - run: npm run ctest
+
+ tests_win_firefox:
+ name: "Win + FF"
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - run: npm install
+ - run: npm run ftest
+
+ tests_win_webkit:
+ name: "Win + WK"
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - run: npm install
+ - run: npm run wtest
+
+ tests_mac_chromium:
+ name: "Mac + CR"
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - run: npm install
+ - run: npm run ctest
+
+ tests_mac_firefox:
+ name: "Mac + FF"
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - run: npm install
+ - run: npm run ftest
+
+ tests_mac_webkit:
+ name: "Mac + WK"
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.15
+ - run: npm install
+ - run: npm run wtest
diff --git a/.github/workflows/webkit-linux.yml b/.github/workflows/webkit-linux.yml
deleted file mode 100644
index c7d2862504..0000000000
--- a/.github/workflows/webkit-linux.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-name: "tests: Linux + WK"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: ubuntu-18.04
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: install required packages
- run: |
- sudo apt update
- sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 libevent-2.1-6 libnotify4 libxslt1.1
- sudo apt-get install xvfb
-
- - name: npm install, build, and test
- run: |
- npm install
- # The following logs LDD status of all webkit-wpe shared objects and executables.
- # pushd .local-webkit/$(ls .local-webkit)/minibrowser-wpe; ls -1 | grep -v pw_run.sh | LD_LIBRARY_PATH=$PWD xargs ldd; popd
-
- xvfb-run --auto-servernum npm run wtest
- env:
- CI: true
diff --git a/.github/workflows/webkit-mac.yml b/.github/workflows/webkit-mac.yml
deleted file mode 100644
index f05f4f308f..0000000000
--- a/.github/workflows/webkit-mac.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: "tests: Mac + WK"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: macos
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
-
- - name: npm install, and test
- run: |
- npm install
- npm run wtest
- env:
- CI: true
diff --git a/.github/workflows/webkit-windows.yml b/.github/workflows/webkit-windows.yml
deleted file mode 100644
index 3eba639cc9..0000000000
--- a/.github/workflows/webkit-windows.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: "tests: Win + WK"
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- build:
-
- runs-on: windows-latest
-
- strategy:
- matrix:
- node-version: [12.x]
-
- steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
-
- - name: npm install, and test
- run: |
- npm install
- npm run wtest
- env:
- CI: true