Sha256: 7f8df3d096248ae86a232ef6019df6e20ff7c3100d6f85d422cfd99983bd7d5e

Contents?: true

Size: 1.15 KB

Versions: 12

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.7, 3.0, 3.1]

    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

12 entries across 12 versions & 1 rubygems

Version Path
twiglet-3.7.1 .github/workflows/ruby.yml
twiglet-3.7.0 .github/workflows/ruby.yml
twiglet-3.6.6 .github/workflows/ruby.yml
twiglet-3.6.5 .github/workflows/ruby.yml
twiglet-3.6.4 .github/workflows/ruby.yml
twiglet-3.6.3 .github/workflows/ruby.yml
twiglet-3.6.2 .github/workflows/ruby.yml
twiglet-3.6.1 .github/workflows/ruby.yml
twiglet-3.6.0 .github/workflows/ruby.yml
twiglet-3.5.4 .github/workflows/ruby.yml
twiglet-3.5.2 .github/workflows/ruby.yml
twiglet-3.5.1 .github/workflows/ruby.yml