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

Migrate to GitHub Actions #132

Merged
merged 4 commits into from Jun 15, 2021
Merged

Conversation

shogo82148
Copy link
Contributor

fixes #131

travis-ci.com is an awesome service, however contributors need some credits if they want to run tests on forked repositories.
So, I propose to migrate GitHub Actions.

- name: Test
run: make cover
env:
GITHUB_TOKEN: ${{ secrets.GHTOOLS_GITHUB_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please set secrets for GitHub Actions.
https://docs.github.com/en/actions/reference/encrypted-secrets
https://docs.github.com/en/rest/reference/actions#secrets

It needs collaborator access to do it.

Comment on lines +23 to +29
if token == "" {
if os.Getenv("CI") != "" {
t.Skipf("The %s environment value is not configured. skip it.", EnvGitHubToken)
} else {
t.Fatalf("The %s environment value is not configured. To skip it, set CI=true", EnvGitHubToken)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need this because secrets are not passed to the runner when a workflow is triggered from a forked repository.
See https://docs.github.com/en/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow

@Songmu Songmu merged commit 250d333 into tcnksm:master Jun 15, 2021
Songmu added a commit that referenced this pull request Jun 15, 2021
## [v0.14.0](v0.13.0...v0.14.0) (2021-06-15)

* udpate deps [#134](#134) ([Songmu](https://github.com/Songmu))
* fix lint warnings [#133](#133) ([shogo82148](https://github.com/shogo82148))
* Migrate to GitHub Actions [#132](#132) ([shogo82148](https://github.com/shogo82148))
* Allow use of ENV Varaibles to run tests which upload to github [#130](#130) ([JehandadK](https://github.com/JehandadK))
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.

Migrate from travis-ci.org to travis-ci.com due to shutdown of service
2 participants