Sha256: 8c51f2994da15ef5f205ad32eedc3e2ecaa79a3ed138ced223a842df9a39f6de

Contents?: true

Size: 1.55 KB

Versions: 8

Compression:

Stored size: 1.55 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@v3
      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
      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

8 entries across 8 versions & 1 rubygems

Version Path
prefab-cloud-ruby-1.8.2 .github/workflows/ruby.yml
prefab-cloud-ruby-1.8.1 .github/workflows/ruby.yml
prefab-cloud-ruby-1.8.0 .github/workflows/ruby.yml
prefab-cloud-ruby-1.7.2 .github/workflows/ruby.yml
prefab-cloud-ruby-1.7.1 .github/workflows/ruby.yml
prefab-cloud-ruby-1.7.0 .github/workflows/ruby.yml
prefab-cloud-ruby-1.6.2 .github/workflows/ruby.yml
prefab-cloud-ruby-1.6.1 .github/workflows/ruby.yml