Skip to content

Commit

Permalink
setup macos
Browse files Browse the repository at this point in the history
  • Loading branch information
nijikon committed Dec 12, 2024
1 parent 8ec4d2b commit d230926
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,31 @@
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:
macos-specs:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.4.0-preview2'
- '3.3'
- '3.2'
- '3.1'
include:
- ruby: '3.3'
coverage: 'true'
runs-on: macos-13
steps:
- uses: docker/setup-docker-action@v4
- 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}}
ruby-version: '3.3' # Using latest stable Ruby version
bundler-cache: true

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

run: |
set -e
bundle install --path vendor/bundle
Expand Down

0 comments on commit d230926

Please sign in to comment.