Sha256: 1d357f53a6e80a4e336853178014ced8dd4154553c16d8b04dab979e6b908497

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

name: Ruby CI

on:
  push:
    branches:

env:
  CI: true
permissions:
  contents: read

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

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

    steps:
    - uses: actions/checkout@v3
    - 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

3 entries across 3 versions & 1 rubygems

Version Path
twiglet-3.5.0 .github/workflows/ruby.yml
twiglet-3.4.9 .github/workflows/ruby.yml
twiglet-3.4.8 .github/workflows/ruby.yml