Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI #12

Merged
merged 4 commits into from
Jul 12, 2020
Merged

Add CI #12

merged 4 commits into from
Jul 12, 2020

Conversation

dominykas
Copy link
Member

Some CI is better than no CI

Closes #5

Signed-off-by: Dominykas Blyžė <[email protected]>
@dominykas
Copy link
Member Author

dominykas commented Jul 5, 2020

Will add my token for tests to work in CI, but @andrewhughes101 will need to add me as admin on the test repo. I guess this won't work. I thought there was a way to provide the token to untrusted builds via some confirmation, but apparently there isn't. I'll just disable these tests when GITHUB_TOKEN is not available.

Ideally, the tests would pass without any setup (i.e. without the need for a token), so I guess we should split the tests that need network and the ones that don't at some point later.

- "14"

cache:
npm: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the default, fwiw, so this line isn't needed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@ljharb ljharb Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently i'm wrong as of a year ago :-) "Please note that as of July 2019, npm is cached by default on Travis CI" my mistake.

.travis.yml Outdated
Comment on lines 5 to 7
- "10"
- "12"
- "14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: sort the newest at the top

Suggested change
- "10"
- "12"
- "14"
- "14"
- "12"
- "10"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 5b5e684, but for the record I find this change entirely pointless.

Nits like this are distracting, discouraging and demotivating.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry I caused you to feel this way; I'd love to understand more about why it's discouraging or demotivating. To me, this is just part of any code review. It being a "nit" just means it's not a blocker, and i'd be happy to explain why it's not pointless if you're interested.

Copy link
Member Author

@dominykas dominykas Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The motivation for the ordering probably matters more on nodejs/ci-config-travis#6 than here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an imported config, the order is backwards; so i believe it's correct there :-)

test/github.js Outdated
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'))
})
if (process.env.GITHUB_TOKEN) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does tap not have a "skip" mechanism?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My google led me to issues for jest, not tap 🤦 0d5460d

@dominykas dominykas merged commit 4e3085b into pkgjs:master Jul 12, 2020
@dominykas
Copy link
Member Author

🎉 This PR is included in version 0.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CI
4 participants