Sha256: 789c95f0d7267871ff8538691fa66ee48a28034a28a56577eedbd3719b0accb6

Contents?: true

Size: 1.8 KB

Versions: 9

Compression:

Stored size: 1.8 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: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  test:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ '2.6', '2.7', '3.0' ]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version:  ${{ matrix.ruby }}
    - uses: actions/cache@v2
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-${{ matrix.ruby }}-gem-deps-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-${{ matrix.ruby }}-gem-deps-
    - name: Install dependencies
      run: |
        bundle config path vendor/bundle
        bundle install
    - name: Run tests
      run: COVERAGE=1 bundle exec rake
    - name: Upload Coverage
      uses: actions/upload-artifact@master
      if: always()
      with:
        name: coverage-report
        path: coverage
    - uses: actions/cache@v2
      with:
        path: example/vendor/bundle
        key: ${{ runner.os }}-${{ matrix.ruby }}-example-deps-${{ hashFiles('example/**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-${{ matrix.ruby }}-example-deps-
    - name: Install example dependencies for example
      working-directory: example
      run: |
        bundle config path vendor/bundle
        bundle install
    - name: Run specs for example
      working-directory: example
      run: bundle exec rake

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sober_swag-0.25.2 .github/workflows/ruby.yml
sober_swag-0.25.1 .github/workflows/ruby.yml
sober_swag-0.25.0 .github/workflows/ruby.yml
sober_swag-0.24.1 .github/workflows/ruby.yml
sober_swag-0.24.0 .github/workflows/ruby.yml
sober_swag-0.23.0 .github/workflows/ruby.yml
sober_swag-0.22.0 .github/workflows/ruby.yml
sober_swag-0.21.0 .github/workflows/ruby.yml
sober_swag-0.20.0 .github/workflows/ruby.yml