Skip to content

Commit

Permalink
Merge pull request #87 from savonrb/coveralls
Browse files Browse the repository at this point in the history
Coveralls setup with Github actions
  • Loading branch information
mattpolito committed May 23, 2023
2 parents dfdbbb8 + 43db895 commit ce90e01
Showing 1 changed file with 43 additions and 9 deletions.
52 changes: 43 additions & 9 deletions .github/workflows/ci.yml
Expand Up @@ -2,28 +2,62 @@ name: CI

on:
push:
branches: [master]
branches:
- master
pull_request:
branches: [master]
branches:
- '*'

jobs:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}

strategy:
fail-fast: true
matrix:
ruby-version:
ruby:
- '3.2'
- '3.1'
- '3.0'
- 'jruby-head'
- 'jruby'

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache

- name: Run tests
run: bundle exec rake --trace
continue-on-error: false

coveralls:
name: Coveralls
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
- name: Checkout
uses: actions/checkout@v3

- 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
ruby-version: 3.2
bundler-cache: true

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake

- name: Report coverage
uses: coverallsapp/github-action@v2
with:
flag-name: ruby-3.2
parallel: true

0 comments on commit ce90e01

Please sign in to comment.