Skip to content

Instantly share code, notes, and snippets.

@d2lam
Last active April 21, 2017 18:29
Show Gist options
  • Save d2lam/f7b39753aa33b9ceac7327ed11a13243 to your computer and use it in GitHub Desktop.
Save d2lam/f7b39753aa33b9ceac7327ed11a13243 to your computer and use it in GitHub Desktop.
Test parser
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
'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