Skip to content

Commit

Permalink
Merge pull request #12 from dominykas/master
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
dominykas authored Jul 12, 2020
2 parents 72daa5d + 5b5e684 commit 4e3085b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js

node_js:
- "14"
- "12"
- "10"

cache:
npm: false
4 changes: 2 additions & 2 deletions test/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

0 comments on commit 4e3085b

Please sign in to comment.