From 60ec89a90b7e4bbc97d6e235bc4c2874f12397c3 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Fri, 22 Apr 2022 12:40:18 +0200 Subject: [PATCH] chore: add headful mode tests (#8265) --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 190667bbffd6b..00779a7b62ffd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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