Sha256: a4f29f5cc4bc08184cc6fe69b5388197f0e7a589a5813e2243e8da6b5dd207fb

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

---
name: ruby-tests

on:
  pull_request:
  push:
  workflow_dispatch:
    inputs: {}

jobs:
  build:
    name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }}
    runs-on: "ubuntu-latest"
    strategy:
      fail-fast: false
      matrix:
        ruby: ["2.7", "3.0"]
        gemfile:
          - Gemfile

    steps:
      - uses: actions/checkout@v1

      - uses: actions/cache@v2
        id: bundler-cache
        with:
          path: vendor/bundle
          key: >
            ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
            hashFiles(matrix.gemfile) }}

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}

      - name: Install gem dependencies
        env:
          BUNDLE_GEMFILE: ${{ matrix.gemfile }}
        run: |
          gem install bundler
          bundle config path vendor/bundle
          bundle update --jobs 4 --retry 3

      - name: Run Tests
        env:
          BUNDLE_GEMFILE: ${{ matrix.gemfile }}
        run: |
          bundle exec rake

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i18n-js-4.0.0.alpha2 .github/workflows/ruby-tests.yml