mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
[workflow] Use LTS node version and split "Run test" step (#3767)
Two small changes to the workflows: - Run linter and spellcheck workflows with LTS node version. The advantage of this is that we no longer have to raise the node version for them. - Split "Run test" step into two steps for more clarity.
This commit is contained in:
parent
b9d63d7252
commit
a5b85c4ab6
8
.github/workflows/automated-tests.yaml
vendored
8
.github/workflows/automated-tests.yaml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: "Use Node.js"
|
- name: "Use Node.js"
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 23
|
node-version: lts/*
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
run: |
|
run: |
|
||||||
@ -55,13 +55,15 @@ jobs:
|
|||||||
- name: "Install MagicMirror²"
|
- name: "Install MagicMirror²"
|
||||||
run: |
|
run: |
|
||||||
node --run install-mm:dev
|
node --run install-mm:dev
|
||||||
- name: "Run tests"
|
- name: "Prepare environment for tests"
|
||||||
run: |
|
run: |
|
||||||
# Fix chrome-sandbox permissions:
|
# Fix chrome-sandbox permissions:
|
||||||
sudo chown root:root ./node_modules/electron/dist/chrome-sandbox
|
sudo chown root:root ./node_modules/electron/dist/chrome-sandbox
|
||||||
sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox
|
sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox
|
||||||
# Start labwc
|
# Start labwc
|
||||||
WLR_BACKENDS=headless WLR_LIBINPUT_NO_DEVICES=1 WLR_RENDERER=pixman labwc &
|
WLR_BACKENDS=headless WLR_LIBINPUT_NO_DEVICES=1 WLR_RENDERER=pixman labwc &
|
||||||
export WAYLAND_DISPLAY=wayland-0
|
|
||||||
touch css/custom.css
|
touch css/custom.css
|
||||||
|
- name: "Run tests"
|
||||||
|
run: |
|
||||||
|
export WAYLAND_DISPLAY=wayland-0
|
||||||
node --run test
|
node --run test
|
||||||
|
2
.github/workflows/spellcheck.yaml
vendored
2
.github/workflows/spellcheck.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: lts/*
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
@ -18,7 +18,9 @@ planned for 2025-07-01
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- [refactor] Simplify module loading process (#3766)
|
- [refactor] Simplify module loading process (#3766)
|
||||||
- Use "node --run" instead of "npm run" (#1511)
|
- Use "node --run" instead of "npm run" (#3764)
|
||||||
|
- [workflow] Run linter und spellcheck with LTS node version (#3767)
|
||||||
|
- [workflow] Split "Run test" step into two steps for more clarity (#3767)
|
||||||
|
|
||||||
## [2.31.0] - 2025-04-01
|
## [2.31.0] - 2025-04-01
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user