Add CI
This commit is contained in:
13
.github/workflows/ci.yml
vendored
Normal file
13
.github/workflows/ci.yml
vendored
Normal 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"
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
const assert = require('assert')
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
humans:
|
||||
humans: []
|
||||
|
||||
|
||||
10
test.sh
Normal file → Executable file
10
test.sh
Normal file → Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user