-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conversation
- name: Test | ||
run: make cover | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GHTOOLS_GITHUB_TOKEN }} |
There was a problem hiding this comment.
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.
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) | ||
} | ||
} |
There was a problem hiding this comment.
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
## [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))
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.