CI for wp2txt Ruby project
After the success yesterday adding CI to a Ruby Gem I thought I can give another try to more Ruby Gems so I looked at the Ruby Digger. As I can see there is even less action there than on CPAN Digger for Perl.
Error reports
First I looked at a project called nezekan. I tried to run the tests locally, but failed. I am not sure if I was even trying to run them as the authors intended, but this error seem to be genuine. It is a case-sensitivity issue. After I fixed that locally I bumped into and reported another issue.
Only now, that I am writing this I realized that the project had a Travis-CI configuration file. Although Travis-CI does not provide the free service any more I could have looked at the configuration file and base my commands on that. I can get back to that later.
wp2txt
After a while I found the wp2txt project. Adding GitHub Actions to this was quite simple though it was different from the previous one. Here is the pull-request and below you'll find a copy of the configuration file as I sent it.
GitHub Actions
examples/wp2txt/ci.yml
name: CI on: push: pull_request: workflow_dispatch: schedule: - cron: '42 5 * * *' jobs: test: strategy: fail-fast: false matrix: ruby: [ '3.1' ] runs-on: ubuntu-latest name: Ruby ${{matrix.ruby}} container: ruby:${{matrix.ruby}} steps: - uses: actions/checkout@v3 - name: Show Ruby Version run: ruby -v - name: Install dependencies run: bundle install - name: Install rspec run: gem install rspec - name: Run tests run: rspec
Conclusion
Slowly, but I learn how to run the tests in the various Ruby projects as well. Unfortunately there are not very many new uploads to RubyGems and this Ruby Digger is growing slowly.
Published on 2022-12-11