Skip to content

Commit 3e72bb0

Browse files
committed
Created github action for running tests
1 parent 3980f9d commit 3e72bb0

4 files changed

Lines changed: 26 additions & 2 deletions

File tree

.github/workflows/actions.yml

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
2-
docs/test.html
2+
output
33
bundle
44
.cache

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"url": "https://github.com/flibbles/tw5-relink/issues"
2929
},
3030
"homepage": "https://github.com/flibbles/tw5-relink#readme",
31+
"files": [
32+
"plugins/"
33+
],
3134
"dependencies": {
3235
"tiddlywiki": "^5.1.22"
3336
},

tiddlywiki.info

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
],
1313
"build": {
1414
"test": [
15-
"--output", "./docs/",
1615
"--rendertiddler",
1716
"$:/core/save/all",
1817
"test.html",

0 commit comments

Comments
 (0)