Sha256: 5c8c3c09027ffe705d11c79273c2fbc07a6c3f49b751dba4dc669ea3adabc896

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

name: build

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3

    - name: Install Ruby (3.1.x)
      uses: ruby/setup-ruby@v1

    - name: Install Ghostscript
      run: sudo apt-get install ghostscript gsfonts

    - name: Setup Code Climate test-reporter
      run: |
        curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
        chmod +x ./cc-test-reporter
        ./cc-test-reporter before-build
    - name: Build and test with RSpec
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec rspec
    - name: Publish code coverage
      run: |
        export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
        ./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}}

  lint:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3

    - name: Install Ruby (3.1.x)
      uses: ruby/setup-ruby@v1

    - name: Lint with StandardRB
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec standardrb --no-fix

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
td_statement_extractor-0.1.1 .github/workflows/ruby.yml