Sha256: ddf4fbf9ee707d84024a30647d4c720ebe6f66a480e29e91db325f806c2c77ef

Contents?: true

Size: 1.55 KB

Versions: 1

Compression:

Stored size: 1.55 KB

Contents

name: build

on:
  push:
    branches:
      - '**'
      - '!images'
  pull_request:
    branches:
      - '**'
      - '!images'

env:
  # https://nodejs.org/en/download/current
  # https://nodejs.org/en/about/previous-releases
  node-version: 21.6.2

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        gemfile:
          - gemfiles/Gemfile.rails-6.1
          - gemfiles/Gemfile.rails-7.0
          - gemfiles/Gemfile.rails-7.1
        include:
          # https://www.ruby-lang.org/en/downloads
          - gemfile: gemfiles/Gemfile.rails-6.1
            ruby-version: 3.3.0
          - gemfile: gemfiles/Gemfile.rails-7.0
            ruby-version: 3.3.0
          - gemfile: gemfiles/Gemfile.rails-7.1
            ruby-version: 3.3.0
          - gemfile: Gemfile
            ruby-version: head
            allow_failures: 'true'

    env:
      RAILS_ENV: test
      BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}

    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true
      - name: Set up Node.js
        uses: actions/setup-node@v2
        with:
          node-version: ${{ env.node-version }}
      - name: Prepare test application
        working-directory: ./spec/rails_app
        run: |
          bundle exec rails g chime_sdk:js
      - name: Run tests with RSpec
        run: bundle exec rspec
        continue-on-error: ${{ matrix.allow_failures == 'true' }}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amazon-chime-sdk-rails-2.0.0 .github/workflows/build.yml