fnando / cpf_cnpj

🇧🇷 Validate, generate and format CPF/CNPJ numbers. Include command-line tools.
MIT License
239 stars 42 forks source link

Migration to Github Actions made some tests failed #21

Closed pedrofurtado closed 2 weeks ago

pedrofurtado commented 3 years ago

@fnando After merge of https://github.com/fnando/cpf_cnpj/pull/18 , some tests failed. But I think it is not related to CI itself, but in source code.

I will investigate to get some clue 👍 🔍

pedrofurtado commented 3 years ago

The tests that failed are all about CLI, maybe we need to change something in Github action workflow to get it work well

pedrofurtado commented 3 years ago

There is a really strange behavior, @fnando :

If I run the tests locally in PC that is all green. But if I run the exactly same way in container, appears errors about mismatch of exit codes, in specs of CLI commands from gem 🤔

pedrofurtado commented 3 years ago

Even in PC, sometimes the bundle exec rake run green, sometimes red (without any file changes). There is some randomness that may be causing these errors too

pedrofurtado commented 3 years ago

@fnando Have you any idea about the reason of these random failures? 🤔 I am able to help, in what you need 🤝

fnando commented 2 weeks ago

Fixed via fe9e15a2d2e3b546fddc50536f5c31a42e94c2e2