-
Notifications
You must be signed in to change notification settings - Fork 12
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
Tweak Github Actions support to match official app #21
Comments
(If you can feel free to assign this issue to me so I don't forget about it.) |
Do I meiss some think but |
My team recently switched from Travis-CI to GitHub Actions and ran into this discrepancy! You need to pass We run this right now: - name: Report to Coveralls
run: luacov-coveralls --repo-token $REPO_TOKEN --service-name github
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} But it would be nice to instead be able to just write: - name: Report to Coveralls
run: luacov-coveralls --repo-token $REPO_TOKEN
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
I think the fix ends up being very simple. Instead of using `actions` as the service name when GitHub Actions is detected, use `github` instead? |
@LPGhatguy I just submitted a PR (#23) to fix the service name, and also I think if the env variable is set right in the first pace you can skip the repo token arg too: - name: Report to Coveralls
run: luacov-coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} Would you be able to test this by chance? |
I took a stab at this in the PR that GitHub marked as related to this issue. It looks like the configuration I tried didn't work out. I can look into this more detail if that isn't enough information! EDIT: I don't think I installed the version of luacov-coveralls from your branch correctly, oops. LuaRocks is a little funky to try to navigate. |
@LPGhatguy Thanks for the help testing this in a real world scenario! That means a lot. I think what's happening is that even though you check out the right source, the rockspec you then use goes back and fetches the old released source. I'll look and see if I can find a way to do it from the local tree. |
@moteus I have confirmed via this test run that these proposed changes do work as expected, I think this can be merged now. |
In your job you got |
@moteus I think what you are seeing is a false alarm. Github is not showing test results for the commit I actually wanted to show off. I had pushed a temporary commit with the special rockspec to get this branch (and also ran with -v), and it all worked fine. Then I forced push that commit off and went back to a cleaned up version in anticipation of this fix being released. The result is the error you see now. I poked around and can't even find the logs for the now non-existent commit. My link above does not go to what I actually linked at the time. |
I was struggling for days to get this running. Can anyone add this for the ppl, who might struggle with this in future?
|
In addition to the comment above, this is an awesome explanation and could be use as a reference: |
The official Coveralals app for Github Actions (not useful for Lua, but great otherwise) uses an internal parameter
github-token
as the identifier instead of having to pass a custom secret token.See related upstream issue here.
We should update the support here to do the same thing.
github
as the action namegithub-token
The text was updated successfully, but these errors were encountered: