DEV Community

Gabor Szabo
Gabor Szabo

Posted on • Originally published at code-maven.com

3 1

Day 10: GitHub Actions CI for the rdf-kv Ruby Gem

Finally I managed to set up CI for a Ruby Gem.
ere were some errors that stopped me from doing the regular steps.

A few days ago I sent a pull-request with a CI configuration to the RDF::KV module in Perl.
I was not very happy with the solution, but sent the pull-request anyway.
The author of the module was very responsive and soon pointed me to the step I missed, but also pointed at the Ruby port of rdf-kv.

Today finally I had the time to update the CI I wrote for the Perl version. (See the PR) and also to add the GitHub Actions configuration to the Ruby implementation and send the pull-request

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: Run tests
      run: bundle exec rake
Enter fullscreen mode Exit fullscreen mode

Conclusion

Maybe the earlier failures to set up CI for Ruby Gems wasn't even my fault. Maybe they really had failing tests.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay