-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support chrome headless mode (#8260)
* feat: support chrome headless mode Co-authored-by: Ergün Erdoğmuş <[email protected]>
- Loading branch information
Showing
6 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,17 +201,14 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install xvfb | ||
npm install | ||
ls .local-chromium | ||
- name: Build | ||
run: | | ||
npm run build | ||
- name: Run unit tests in headful mode | ||
uses: nick-invision/retry@v2 | ||
continue-on-error: true | ||
|
@@ -222,3 +219,36 @@ jobs: | |
max_attempts: 1 | ||
command: xvfb-run --auto-servernum npm run unit | ||
timeout_minutes: 10 | ||
|
||
chrome-headless-checks: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# https://github.com/actions/virtual-environments#available-environments | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node: [16] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Install dependencies | ||
run: | | ||
npm install | ||
ls .local-chromium | ||
- name: Build | ||
run: | | ||
npm run build | ||
- name: Run unit tests | ||
uses: nick-invision/retry@v2 | ||
continue-on-error: true | ||
env: | ||
CHROMIUM: true | ||
with: | ||
max_attempts: 1 | ||
command: npm run chrome-headless-unit | ||
timeout_minutes: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters