Skip to content

Commit c552dcb

Browse files
committed
add build testing
1 parent ac2c1f9 commit c552dcb

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/workflows/build.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "MagicMirror² and MMM-Linky build Testing"
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
name: Test install MMM-Linky
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version: [20.x, 22.x, 23.x]
12+
steps:
13+
- name: "Use Node.js ${{ matrix.node-version }}"
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
check-latest: true
18+
19+
- name: Checkout MagicMirror²
20+
uses: actions/checkout@v4
21+
with:
22+
repository: MagicMirrorOrg/MagicMirror
23+
24+
- name: Install MagicMirror²
25+
run: npm install
26+
27+
- name: Checkout MMM-Linky
28+
uses: actions/checkout@v4
29+
with:
30+
path: MagicMirror/modules/MMM-Linky
31+
32+
- name: Install MMM-Linky
33+
run: npm run setup
34+
working-directory: MagicMirror/modules/MMM-Linky
35+
continue-on-error: false

.github/workflows/windowsMaster.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "[Windows] MagicMirror² and MMM-Linky build Testing"
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
name: Test install MMM-Linky
8+
runs-on: windows-latest
9+
strategy:
10+
matrix:
11+
node-version: [ 20.x ]
12+
steps:
13+
- name: "Use Node.js ${{ matrix.node-version }}"
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
check-latest: true
18+
19+
- name: Checkout MagicMirror²
20+
uses: actions/checkout@v4
21+
with:
22+
repository: MagicMirrorOrg/MagicMirror
23+
24+
- name: Install MagicMirror²
25+
run: npm install
26+
27+
- name: Checkout MMM-Linky
28+
uses: actions/checkout@v4
29+
with:
30+
path: MagicMirror/modules/MMM-Linky
31+
32+
- name: Install MMM-Linky
33+
run: npm run setup
34+
working-directory: MagicMirror/modules/MMM-Linky
35+
continue-on-error: false

0 commit comments

Comments
 (0)