Skip to content

Commit f6cc4e9

Browse files
committed
Migrate to unified test workflow
1 parent 4287f1b commit f6cc4e9

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: test
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches: [main]
66
push:
77
branches: [main]
@@ -11,17 +11,9 @@ on:
1111
permissions:
1212
contents: read
1313

14-
# This uses actions/checkout instead of `git clone` directly since it's way
15-
# easier than parsing everything out.
16-
1714
jobs:
1815
test:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-node@v4
23-
with:
24-
node-version: 20
25-
- run: npm ci
26-
- run: npm run lint
27-
- run: npm run build
16+
uses: MithrilJS/infra/.github/workflows/run-tests.yml@main
17+
with:
18+
all-platforms: true
19+
all-versions: true

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"watch": "node scripts/watch.js",
99
"build": "node scripts/build.js",
1010
"lint": "node scripts/lint.js",
11-
"lint:docs": "node scripts/lint-docs.js"
11+
"lint:docs": "node scripts/lint-docs.js",
12+
"test": ""
1213
},
1314
"dependencies": {
1415
"mithril": "2.2.2"

0 commit comments

Comments
 (0)