Last active
April 21, 2017 18:29
-
-
Save d2lam/f7b39753aa33b9ceac7327ed11a13243 to your computer and use it in GitHub Desktop.
Test parser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow: | |
- publish | |
shared: | |
image: node:6 | |
jobs: | |
main: | |
steps: | |
- install: npm install | |
- test: npm test | |
publish: | |
steps: | |
- install: npm install semantic-release | |
- publish: npm run semantic-release | |
secrets: | |
# Publishing to NPM | |
- NPM_TOKEN | |
# Pushing tags to Git | |
- GH_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const fs = require('fs'); | |
const parser = require('./'); | |
const file = fs.readFileSync('test.yaml'); | |
// Configuration (in YAML form) | |
parser(file) | |
.then((pipeline) => { | |
console.log('*****'); | |
console.log(JSON.stringify(pipeline, null, 2)); | |
}) | |
.catch(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment