Sha256: 5dd77cabaa36c064ab729ffbb3a22029f5c10efc1625f4212e639f4ede3e7806

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

name: Test & Lint

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}

jobs:
  build:
    runs-on: ubuntu-latest
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      fail-fast: false
      matrix:
        ruby: [ '2.6', '2.7', '3.0', '3.1' ]
        experimental: [ false ]
    name: Ruby ${{ matrix.ruby }}
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - run: curl https://deepsource.io/cli | sh
      - run: gem install bundler:2.1.4
      - run: bundle install
      - run: bundle exec rubocop
      - run: bundle exec rspec --format progress
      - run: ./bin/deepsource report --analyzer test-coverage --key ruby --value-file ./coverage/.resultset.json
        # don't run on forks which don't have access to DEEPSOURCE_DSN
        if: (env.DEEPSOURCE_DSN != '') && (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository) 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-block-kit-0.21.0 .github/workflows/ci.yml