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

Fix integration tests on GitHub Actions #584

Merged
merged 7 commits into from
Dec 19, 2020

Conversation

bunysae
Copy link
Contributor

@bunysae bunysae commented Nov 28, 2020

Fixes the breaking integration tests on Github actions. The checkout action on Travis CI fetches git submodules, whereas Github actions don't do it.

@bunysae bunysae force-pushed the integration-test branch 3 times, most recently from 9df91b3 to a1c2df0 Compare November 28, 2020 11:37
@sindresorhus
Copy link
Owner

Seems like you can just set the submodules property instead: https://github.com/actions/checkout#usage

@sindresorhus sindresorhus changed the title Github actions: integration test Fix integration tests on GitHub Actions Nov 29, 2020
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
if (process.env.GITHUB_ACTIONS) {
console.log('running on Github actions');
await execa('git', ['config', '--global', 'user.name', 'Github actions']);
await execa('git', ['config', '--global', 'user.email', 'actions@github.com']);
Copy link
Owner

Choose a reason for hiding this comment

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

This too you can do in the GH Actions file and not here.

https://github.com/fregante/setup-git-user

@sindresorhus sindresorhus merged commit 9817261 into sindresorhus:master Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants