diff --git a/.travis.yml b/.travis.yml index 069e864..94b0662 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ node_js: script: - yarn lint - yarn global add codecov -g + - yarn build - yarn test - codecov -f coverage/*.json after_success: diff --git a/src/index.ts b/src/index.ts index 88ed3be..baea679 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,6 +74,7 @@ function validateConfigurationObject(config: IFetchReadmeConfig) { */ const fetchReadme = async (config: IFetchReadmeConfig) => { try { + // Check configuration before proceeding validateConfigurationObject(config) return await getGithubReadmeForRepository(config) } catch (error) {