Skip to content

run tests on ubuntu 22.04 #477

run tests on ubuntu 22.04

run tests on ubuntu 22.04 #477

Workflow file for this run

name: CI
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]
jobs:
# unit-specs:
# runs-on: ubuntu-latest
#
# strategy:
# fail-fast: false
# matrix:
# ruby-version:
# - "3.1"
# - "3.2"
# - "3.3"
# - "3.4"
#
# steps:
# - uses: actions/checkout@v4
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby-version }}
# bundler-cache: true
# - name: Build and test with RSpec
# run: bundle exec rspec --exclude-pattern='spec/integration/*_spec.rb'
integration-specs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- "3.1"
- "3.2"
- "3.3"
- "3.4"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Bring up docker-compose stack
run: docker compose up -d
- name: Build and test with RSpec
env:
RACECAR_BROKERS: localhost:9092
run: |
for i in {1..20}; do
echo "Run number: $i"
timeout --kill-after 180 150 bundle exec rspec spec/integration/*_spec.rb
done