Skip to content

Commit

Permalink
ci: try multiplatform coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed May 31, 2023
1 parent 0bfdc1f commit 271ff50
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 16 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,21 @@ jobs:
- name: Run tests
env:
JRUBY_OPTS: --debug
COVERAGE: true
run: bundle exec rake
- name: Coveralls GitHub Action
if: matrix.os == 'ubuntu'
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/lcov/omniauth.lcov'
flag-name: ${{ matrix.jruby }}
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v1
with:
parallel-finished: true
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ jobs:
bundler-cache: true
- name: Run tests
run: bundle exec rake
env:
COVERAGE: true
- name: Coveralls GitHub Action
if: matrix.os == 'ubuntu'
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/lcov/omniauth.lcov'
flag-name: ${{ matrix.ruby }}
frozen-string-compat:
runs-on: ubuntu-latest
steps:
Expand All @@ -43,21 +53,11 @@ jobs:
env:
RUBYOPT: "--enable-frozen-string-literal"
run: bundle exec rake
coveralls:
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: Run tests
run: bundle exec rake
env:
COVERAGE: true
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/lcov/omniauth.lcov'
- name: Close parallel build
uses: coverallsapp/github-action@v1
with:
parallel-finished: true
18 changes: 18 additions & 0 deletions .github/workflows/truffle_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,21 @@ jobs:
bundler-cache: true
- name: Run tests
run: bundle exec rake
env:
COVERAGE: true
- name: Coveralls GitHub Action
if: matrix.os == 'ubuntu'
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/lcov/omniauth.lcov'
flag-name: ${{ matrix.ruby }}
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v1
with:
parallel-finished: true

0 comments on commit 271ff50

Please sign in to comment.