Deploy, update tests

This commit is contained in:
Tim Ruffles
2019-12-20 12:42:04 +00:00
parent ce6486363e
commit 3195503f1f
4 changed files with 9 additions and 4 deletions
+5 -3
View File
@@ -1,19 +1,21 @@
on: on:
push: push:
branches: ["master", "deploy-test"] branches: ["master"]
jobs: jobs:
depoy: depoy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: mkdir gh-pages
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: mkdir gh-pages
- run: cp favicon.ico gh-pages
- uses: ./ - uses: ./
with: with:
format: html format: html
output: ./gh-pages/index.html output: ./gh-pages/index.html
- run: ls gh-pages
- uses: peaceiris/actions-gh-pages@v2 - uses: peaceiris/actions-gh-pages@v2
env: env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_DIR: ./gh-pages PUBLISH_DIR: gh-pages
PUBLISH_BRANCH: gh-pages PUBLISH_BRANCH: gh-pages
+1 -1
View File
@@ -35,7 +35,7 @@ function invalidFormat(format) {
return return
} }
function jsonFormatter({humans, output}) { function jsonFormatter({humans}, {output}) {
fs.writeSync(output, JSON.stringify(humans, null, 4)) fs.writeSync(output, JSON.stringify(humans, null, 4))
} }
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

+3
View File
@@ -7,4 +7,7 @@ node action.js txt
# check default arg # check default arg
node action.js >/dev/null node action.js >/dev/null
node action.js shell node action.js shell
node action.js html
node action.js txt /tmp/hu-output
grep "Current humans" /tmp/hu-output