chore: add headful mode tests (#8265)

This commit is contained in:
Alex Rudenko 2022-04-22 12:40:18 +02:00 committed by GitHub
parent 351d1466b8
commit 60ec89a90b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,3 +184,41 @@ jobs:
max_attempts: 3
timeout_minutes: 10
command: npm run funit
linux-headful-checks:
# https://github.com/actions/virtual-environments#available-environments
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Node.js
uses: actions/setup-node@v3.1.1
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
env:
CHROMIUM: true
HEADLESS: false
with:
max_attempts: 1
command: xvfb-run --auto-servernum npm run unit
timeout_minutes: 10