Skip to content

Commit

Permalink
CI: Refine CI settings
Browse files Browse the repository at this point in the history
* Add Ruby 3.3
* Don't run CI for Ruby head on each push/pull_request event

Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed Mar 19, 2024
1 parent a6cf4fc commit 199aadc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test-ruby-head.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Testing with Ruby head
on:
schedule:
- cron: '11 32 * * 0'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
ruby: [ 'head' ]

name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install libsnappy-dev libzstd-dev
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: unit testing
env:
CI: true
run: |
gem install bundler rake
bundle install --jobs 4 --retry 3
bundle exec rake test
15 changes: 4 additions & 11 deletions .github/workflows/linux.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing on Ubuntu
name: Test
on:
push:
branches: [master]
Expand All @@ -7,20 +7,13 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby: [ '3.2', '3.1', '3.0', '2.7' ]
os:
- ubuntu-latest
experimental: [false]
include:
- ruby: head
os: ubuntu-latest
experimental: true
os: ['ubuntu-latest']
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7' ]

name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
Expand Down

0 comments on commit 199aadc

Please sign in to comment.