Skip to content

Commit ea59cd1

Browse files
committed
Added github action to run tests
1 parent e1927de commit ea59cd1

File tree

4 files changed

+75
-0
lines changed

4 files changed

+75
-0
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test plugin
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [master]
7+
8+
jobs:
9+
test:
10+
steps:
11+
name: Checkout repository
12+
uses: actions/checkout@v4
13+
name: Use Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: lts/*
17+
name: Install dependencies
18+
run: npm ci
19+
name: Run tests
20+
run: npm test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
output
22
.cache
3+
node_modules

package-lock.json

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "tw5-uglify",
3+
"version": "1.10.0",
4+
"description": "Minify and compress tiddlywiki plugins",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "tiddlywiki --build test"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/flibbles/tw5-uglify.git"
12+
},
13+
"keywords": [
14+
"uglifyjs",
15+
"tiddlywiki5",
16+
"tiddlywiki-plugin"
17+
],
18+
"author": "Flibbles",
19+
"license": "BSD-2-Clause",
20+
"bugs": {
21+
"url": "https://github.com/flibbles/tw5-uglify/issues"
22+
},
23+
"homepage": "https://github.com/flibbles/tw5-uglify#readme",
24+
"dependencies": {
25+
"tiddlywiki": "^5.3.0"
26+
}
27+
}

0 commit comments

Comments
 (0)