From ba4d1ff7c1536803729cb9d077b043ab4254b1c8 Mon Sep 17 00:00:00 2001 From: Karsten Hassel Date: Sat, 4 Jan 2025 21:25:03 +0100 Subject: [PATCH] tests --- .github/workflows/automated-tests.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/automated-tests.yaml b/.github/workflows/automated-tests.yaml index af57af3521..0259ba47fc 100644 --- a/.github/workflows/automated-tests.yaml +++ b/.github/workflows/automated-tests.yaml @@ -38,7 +38,8 @@ jobs: timeout-minutes: 30 strategy: matrix: - node-version: [20.18.1, 20.x, 22.x, 23.x] + # node-version: [20.18.1, 20.x, 22.x, 23.x] + node-version: [23.x] steps: - name: Install electron dependencies and labwc run: sudo apt-get install -y libnss3 libasound2t64 labwc @@ -50,15 +51,28 @@ jobs: node-version: ${{ matrix.node-version }} check-latest: true cache: "npm" - - name: "Install dependencies" + - name: "Install MagicMirror²" run: | npm run install-mm:dev - name: "Run tests" run: | + # chown -R runner:docker . + # su - runner + ls -la ./node_modules/electron/dist/chrome-sandbox + # is owned by root and has mode 4755. + chown root:root ./node_modules/electron/dist/chrome-sandbox + chmod 4755 ./node_modules/electron/dist/chrome-sandbox + ls -la ./node_modules/electron/dist/chrome-sandbox + id + env + cat /etc/passwd + cat /etc/group export WLR_BACKENDS=headless export WLR_LIBINPUT_NO_DEVICES=1 export WLR_RENDERER=pixman labwc & export WAYLAND_DISPLAY=wayland-0 touch css/custom.css - npm run test + # npm run test + # npx jest tests/electron/env_spec.js + npm run start:wayland