Skip to content

Conversation

moufmouf
Copy link
Member

Putting the Coveralls secret in clear text (to be able to have coveralls info in forks)
This means anyone can push information in Safe coveralls. We are ok with that "risk"

Putting the Coveralls secret in clear text (to be able to have coveralls info in forks)
This means anyone can push information in Safe coveralls. We are ok with that "risk"
Copy link
Contributor

@localheinz localheinz left a comment

Choose a reason for hiding this comment

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

Not sure why the coverage is not reported in the pull request, but it was successfully reported.

👍

@moufmouf
Copy link
Member Author

Indeed. I would have expected a red flag here. I'm not sure what went wrong.
I'll try with this Github action instead: https://github.com/marketplace/actions/coveralls-github-action

@moufmouf moufmouf force-pushed the hard_code_coveralls_token branch from f740037 to 207397e Compare February 24, 2020 13:16
@moufmouf
Copy link
Member Author

Apparently the Github action expects a file in LCOV format that cannot be provided by PHPUnit :(

0s
  '          <metrics complexity="62" methods="11" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="120" coveredstatements="97" elements="131" coveredelements="103"/>\n' +
Run coverallsapp/github-action@master
Using lcov file: generator/build/logs/clover.xml
[error] "2020-02-24T13:18:52.864Z"  'error from lcovParse: ' 'Failed to parse string'
[error] "2020-02-24T13:18:52.865Z"  'input: ' '<?xml version="1.0" encoding="UTF-8"?>\n' +
  '<coverage generated="1582550251">\n' +
  '  <project timestamp="1582550251">\n' +
  '    <package name="Safe">\n' +
  '      <file name="/home/runner/work/safe/safe/generator/src/ComposerJsonEditor.php">\n' +

@moufmouf
Copy link
Member Author

Ok. We are missing support from Github Actions from PHP-Coveralls package.

PR is pending here: php-coveralls/php-coveralls#275

As soon as this is merged, I think we can try again and finally get code coverage is forks too.

@simPod
Copy link
Contributor

simPod commented Feb 25, 2020

@localheinz
Copy link
Contributor

Why not use https://codecov.io instead?

With codecov, token-less uploads work fine on GitHub Actions.

@Kharhamel Kharhamel mentioned this pull request Jun 8, 2020
@Kharhamel
Copy link
Collaborator

Not needed anymore since we use codecov, thanks for the tip @localheinz

@Kharhamel Kharhamel closed this Jun 8, 2020
@simPod
Copy link
Contributor

simPod commented Jun 8, 2020

token is not issue with coveralls. Though the coveralls php repo is dead so covecov is definitely the better alternative.

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.

4 participants