Sha256: 0daa1813fd186e4177d09caf9c484000a154c850bb7cc08b4a4b0f88957f44de

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

---
name: Tests

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main
jobs:
  build:
    name: Tests with Ruby ${{ matrix.ruby }}
    runs-on: "ubuntu-latest"
    strategy:
      fail-fast: false
      matrix:
        ruby: ["2.7.x", "2.6.x", "2.5.x", "3.0.x", "3.1.x"]

    steps:
      - uses: actions/checkout@v1

      - uses: actions/cache@v2
        with:
          path: vendor/bundle
          key: >
            ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
            hashFiles('aitch.gemspec') }}
          restore-keys: >
            ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
            hashFiles('aitch.gemspec') }}

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

      - name: Install gem dependencies
        env:
          RAILS_ENV: test
        run: |
          gem install bundler
          bundle config path vendor/bundle
          bundle update --jobs 4 --retry 3

      - name: Run Tests
        env:
          RAILS_ENV: test
        run: |
          bundle exec rake

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aitch-1.2.2 .github/workflows/tests.yml
aitch-1.2.1 .github/workflows/tests.yml
aitch-1.2.0 .github/workflows/tests.yml