Skip to content

Commit

Permalink
#168 Update circle ci image and yaml content validator
Browse files Browse the repository at this point in the history
  • Loading branch information
s0b0lev committed Feb 11, 2019
1 parent 6ad8ef8 commit 8b07553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defaults: &defaults
docker:
- image: circleci/node:10.15.1
- image: circleci/node:8.11.2

version: 2
jobs:
Expand Down
7 changes: 2 additions & 5 deletions scripts/yaml_validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ const yaml = require('js-yaml');
const web3 = require('web3');
const chalk = require('chalk');

let files = [];

const walkSync = (dir) => {
let filelist = [];
const walkSync = (dir, filelist=[]) => {
fs.readdirSync(dir).forEach((file) => {
if(fs.statSync(path.join(dir, file)).isDirectory()) {
filelist = walkSync(path.join(dir, file), filelist)
Expand All @@ -17,8 +15,7 @@ const walkSync = (dir) => {
}
}
});
files = [...files, ...filelist];
return files;
return filelist;
};

const KECCAK256_HASH_LENGTH = 64;
Expand Down

0 comments on commit 8b07553

Please sign in to comment.