mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2025-03-13 01:08:19 -07:00
Compare commits
2 commits
347c9bd78c
...
fd3c1142b7
Author | SHA1 | Date | |
---|---|---|---|
|
fd3c1142b7 | ||
|
00800b9ac4 |
2 changed files with 28 additions and 2 deletions
26
.github/workflows/automated-tests.yaml
vendored
Normal file
26
.github/workflows/automated-tests.yaml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Automated Tests
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master, develop]
|
||||||
|
pull_request:
|
||||||
|
branches: [master, develop]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: npm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Check linting
|
||||||
|
run: npm run lint
|
|
@ -212,13 +212,13 @@ Module.register('MMM-pages', {
|
||||||
|
|
||||||
MM.getModules()
|
MM.getModules()
|
||||||
.exceptWithClass(modulesToShow)
|
.exceptWithClass(modulesToShow)
|
||||||
.enumerate(module => module.hide(animationTime, lockStringObj));
|
.enumerate(module => module.hide(animationTime, () => {}, lockStringObj));
|
||||||
|
|
||||||
// Shows all modules meant to be on the current page, after a small delay.
|
// Shows all modules meant to be on the current page, after a small delay.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
MM.getModules()
|
MM.getModules()
|
||||||
.withClass(modulesToShow)
|
.withClass(modulesToShow)
|
||||||
.enumerate(module => module.show(animationTime, lockStringObj));
|
.enumerate(module => module.show(animationTime, () => {}, lockStringObj));
|
||||||
}, animationTime);
|
}, animationTime);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue