Sha256: 470d55a348be734e30dd954d29fb34bb091c024bc330199968d03e71ed4eb1d6

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

name: ci

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

on:
  pull_request:
  push:
  schedule:
    - cron:  '0 1 * * *'

env:
  BUNDLE_RETRY: 6
  BUNDLE_JOBS: 4

jobs:
  specs:
    timeout-minutes: 30
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby:
          - '3.3'
          - '3.2'
          - '3.1'
          - '3.0'
          - '2.7'
        include:
          - ruby: '3.3'
            coverage: 'true'
    steps:
      - uses: actions/checkout@v4
      - name: Install package dependencies
        run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"

      - name: Start Kafka with docker compose
        run: |
          docker compose up -d || (sleep 5 && docker compose up -d)

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{matrix.ruby}}
          bundler-cache: true

      - name: Run all specs
        env:
          GITHUB_COVERAGE: ${{matrix.coverage}}

        run: |
          bundle install --path vendor/bundle
          cd ext && bundle exec rake && cd ..
          bundle exec rspec

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
karafka-rdkafka-0.15.2 .github/workflows/ci.yml
rdkafka-0.16.0.beta1 .github/workflows/ci.yml
karafka-rdkafka-0.15.0 .github/workflows/ci.yml