This commit is contained in:
Tim Ruffles
2019-12-19 15:43:45 +00:00
parent 1454285019
commit 872bad546e
4 changed files with 20 additions and 7 deletions

13
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
on:
push:
branches: ["**"]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install --production
- run: "./test.sh"

View File

@@ -1,2 +0,0 @@
const assert = require('assert')

View File

@@ -1,2 +1,2 @@
humans:
humans: []

10
test.sh Normal file → Executable file
View File

@@ -1,8 +1,10 @@
#!bin/bash
#!/bin/bash
set -xeuo pipefail
node action.js txt >/tmp/t1
node action.js json >/tmp/t2
node action.js shell >/tmp/t3
node action.js json >/dev/null
node action.js txt
# check default arg
node action.js >/dev/null
node action.js shell