Sha256: 68a0197aff566c7fa3a39350ced44703a49d8faf23d29f78bc968f0f2150c704

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

name: Ruby CI

on:
  push:
    branches:

env:
  CI: true

jobs:
  build:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./

    strategy:
      matrix:
        ruby-version: [2.5, 2.6, 2.7]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
    - name: Install dependencies
      run: bundle install
    - name: install cc-test-reporter
      env:
        CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
      run: |
        curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 > ./cc-test-reporter
        chmod +x ./cc-test-reporter
        ./cc-test-reporter before-build
    - name: Rubocop Check
      run: bundle exec rubocop
    - name: Run all tests
      run: bundle exec rake test
      shell: bash
    - name: upload test coverage to CodeClimate
      env:
        CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
      run: ./cc-test-reporter after-build
    - name: Run example_app
      run: bundle exec ruby example_app.rb
      shell: bash

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twiglet-2.4.0 .github/workflows/ruby.yml
twiglet-2.3.11 .github/workflows/ruby.yml
twiglet-2.3.10 .github/workflows/ruby.yml
twiglet-2.3.9 .github/workflows/ruby.yml
twiglet-2.3.8 .github/workflows/ruby.yml