From 872bad546e56a447ff1be3bac1d9440b1fe8a846 Mon Sep 17 00:00:00 2001 From: Tim Ruffles Date: Thu, 19 Dec 2019 15:43:45 +0000 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 13 +++++++++++++ actions.test.js | 2 -- humans.txt.yaml | 2 +- test.sh | 10 ++++++---- 4 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 actions.test.js mode change 100644 => 100755 test.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..42ef490 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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" + diff --git a/actions.test.js b/actions.test.js deleted file mode 100644 index b25c065..0000000 --- a/actions.test.js +++ /dev/null @@ -1,2 +0,0 @@ -const assert = require('assert') - diff --git a/humans.txt.yaml b/humans.txt.yaml index a08ed76..b48fa17 100644 --- a/humans.txt.yaml +++ b/humans.txt.yaml @@ -1,2 +1,2 @@ -humans: +humans: [] diff --git a/test.sh b/test.sh old mode 100644 new mode 100755 index 9eec1de..22f7736 --- a/test.sh +++ b/test.sh @@ -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