Sha256: c2a66b06b1c7ada24fc556a9c1f9eed88b803e754c46cbd57427970cd15fa038

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

name: Ruby

on:
  push:
    paths-ignore:
      - 'README.md'
      - 'CHANGELOG.md'
  pull_request:
    branches: [ master ]
    paths-ignore:
      - 'README.md'
      - 'CHANGELOG.md'

jobs:
  test:
    runs-on: ubuntu-latest
    name: Test
    if: "contains(github.event.commits[0].message, '[ci skip]') == false"
    strategy:
      fail-fast: false
      matrix:
        ruby:
          - 2.2
          - 2.6
          - 2.7
          - 3.0
        gemfile:
          - 3.2.gemfile
          - 4.2.gemfile
          - 5.0.gemfile
          - 5.1.gemfile
          - 5.2.gemfile
          - 6.0.gemfile
          - 6.1.gemfile
        exclude:
          - gemfile: 3.2.gemfile
            ruby: 2.6
          - gemfile: 3.2.gemfile
            ruby: 2.7
          - gemfile: 3.2.gemfile
            ruby: 3.0
          - gemfile: 4.2.gemfile
            ruby: 2.7
          - gemfile: 4.2.gemfile
            ruby: 3.0
          - gemfile: 5.0.gemfile
            ruby: 3.0
          - gemfile: 5.1.gemfile
            ruby: 3.0
          - gemfile: 5.2.gemfile
            ruby: 3.0
          - gemfile: 6.0.gemfile
            ruby: 2.2
          - gemfile: 6.1.gemfile
            ruby: 2.2
    env:
      BUNDLE_GEMFILE: "gemfiles/${{ matrix.gemfile }}"

    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Setup Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true # runs 'bundle install' and caches installed gems automatically
    - name: Run tests
      run: bundle exec rake
    - name: Publish code coverage
      if: ${{ success() && github.event.pull_request.head.repo.full_name == github.repository }}
      uses: paambaati/codeclimate-action@v2.7.5
      env:
        CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ta_deep_pluck-1.3.0 .github/workflows/ruby.yml