rogerluan/arkana

View on GitHub
.github/workflows/push.yml

Summary

Maintainability
Test Coverage
name: Tests & Linter
on:
  push:
    branches:
      - main
jobs:
  test:
    env:
      CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest]
        # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
        ruby: ['2.7', '3.0', '3.1', head]
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true # runs 'bundle install' and caches installed gems automatically
    - uses: paambaati/codeclimate-action@v5.0.0
      with:
        coverageCommand: bundle exec rake
        debug: true