* CI on Ruby 3.3. #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow runs continuous CI across different versions of ruby on all branches and pull requests to develop. | |
name: CI | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ develop ] | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: Ruby ${{ matrix.ruby }} | |
if: "contains(github.event.commits[0].message, '[ci skip]') == false" | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'jruby' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ['3.0', 3.1, 3.2, 3.3, ruby-head, jruby] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install dependencies | |
run: bundle install --jobs 4 --retry 3 | |
- name: Run tests | |
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/github-action@v2 | |
if: "matrix.ruby == '3.2'" | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
wintests: | |
name: Win64 Ruby ${{ matrix.ruby }} | |
if: "contains(github.event.commits[0].message, '[ci skip]') == false" | |
runs-on: windows-latest | |
env: | |
CI: true | |
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'jruby' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- 3.3 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install dependencies | |
run: bundle install --jobs 4 --retry 3 | |
- name: Run tests | |
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES |