Sha256: eb217f2a9f3a535d36b8aa41e2e9bbb7b3d8d4fe1d2470c6d2bc6711f9455de5

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 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.7', '3.0', '3.3']

    steps:
    - uses: actions/checkout@v4
      with:
        submodules: recursive
    - name: Set up Ruby
    # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
    # change this to (see https://github.com/ruby/setup-ruby#versioning):
    # uses: ruby/setup-ruby@v1
    # uses: ruby/setup-ruby@2b019609e2b0f1ea1a2bc8ca11cb82ab46ada124
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: false # runs 'bundle install' and caches installed gems automatically
    - name: Install dependencies
      run: bundle install --without development --jobs 4 --retry 3
    - name: Run tests
      run: bundle exec rake --trace
      env:
        PREFAB_INTEGRATION_TEST_API_KEY: ${{ secrets.PREFAB_INTEGRATION_TEST_API_KEY }}
        PREFAB_INTEGRATION_TEST_ENCRYPTION_KEY: ${{ secrets.PREFAB_INTEGRATION_TEST_ENCRYPTION_KEY }}
        NOT_A_NUMBER: "abcd"
        IS_A_NUMBER: "1234"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prefab-cloud-ruby-1.8.8.pre.1 .github/workflows/ruby.yml
prefab-cloud-ruby-1.8.7 .github/workflows/ruby.yml
prefab-cloud-ruby-1.8.6 .github/workflows/ruby.yml
prefab-cloud-ruby-1.8.5 .github/workflows/ruby.yml