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