Sha256: 99fba649c3f9eee46edaaefc7cb6841ffa55085005f1612516669279c515c42c

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

name: Tests

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

  schedule:
    - cron: "0 10 * * *"

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

    steps:
      - uses: actions/checkout@v1

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

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dopstick-0.0.6 .github/workflows/tests.yml
dopstick-0.0.5 .github/workflows/tests.yml
dopstick-0.0.4 .github/workflows/tests.yml
dopstick-0.0.3 .github/workflows/tests.yml
dopstick-0.0.2 .github/workflows/tests.yml
dopstick-0.0.1 .github/workflows/tests.yml