Sha256: 09d7844c9c7a579e36064b760f9a995c8a0eb40600b954e591337e1c6c6e1b2a

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

permissions:
  contents: read

jobs:
  test:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.5', '2.6', '2.7', '3.0']

    steps:
    - uses: actions/checkout@v4

    - 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

    - name: Run tests
      run: HUBSPOT_LOG_LEVEL=FATAL bundle exec rspec

    - name: Upload coverage to Codecov
      run: bash <(curl -s https://codecov.io/bash)
      env:
        CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

    # - name: Upload coverage to Codacy
    #   run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
    #   env:
    #     CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby_hubspot_api-0.3.3 .github/workflows/ruby.yml
ruby_hubspot_api-0.3.2 .github/workflows/ruby.yml
ruby_hubspot_api-0.3.1 .github/workflows/ruby.yml
ruby_hubspot_api-0.3.0 .github/workflows/ruby.yml