diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5fb1da5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: node_js + +node_js: + - "14" + - "12" + - "10" + +cache: + npm: false diff --git a/test/github.js b/test/github.js index e960891..4401fb5 100644 --- a/test/github.js +++ b/test/github.js @@ -6,8 +6,8 @@ const CONFIG = require('./fixtures/config') tap.test('package.json can be fetched with a valid url', async tap => { tap.equal(JSON.stringify(await github.getPackageJson(CONFIG.DEP_ORG, CONFIG.DEP_REPO)), JSON.stringify(CONFIG.PKGJSON)) // tap.throws( await pkgTest.getPackageJson('not-an-org', 'not-a-repo')) -}) +}, { skip: !process.env.GITHUB_TOKEN }) tap.test('correct permissions returned for GitHub repo', async tap => { tap.equal((await github.getPermissions(CONFIG.DEP_ORG, CONFIG.DEP_REPO)), CONFIG.DEP_REPO_PERM) -}) +}, { skip: !process.env.GITHUB_TOKEN })