Skip to content

Commit

Permalink
Add CI setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Nov 5, 2023
1 parent 2d61446 commit a51338d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
test-linux:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2']

steps:
- name: Start Cassandra v4
run: |
docker run --name cassandra -d -p 9042:9042 cassandra:4
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Prepare tests
run: bundle exec rake compile
- name: Run tests
run: bundle exec rake test

0 comments on commit a51338d

Please sign in to comment.