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' ] 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 if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository) # don't run on forks which don't have access to DEEPSOURCE_DSN