Skip to content

Merge pull request #61 from sharesight/chore/improve_how_to_contribut… #38

Merge pull request #61 from sharesight/chore/improve_how_to_contribut…

Merge pull request #61 from sharesight/chore/improve_how_to_contribut… #38

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Linters
on:
push
permissions:
contents: read
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run rubocop
run: bundle exec rubocop --parallel
- name: Slack notification
if: success() || failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: "ci-${{ github.event.repository.name }}"
SLACK_COLOR: ${{ job.status }} # automatic colour based on job status
SLACK_ICON_EMOJI: ':sharesight_cat:'
SLACK_TITLE: "Linter run with Rubocop *${{ job.status }}* (by ${{ github.actor }})"
SLACK_USERNAME: GA rubocop
SLACK_FOOTER: ''
MSG_MINIMAL: actions url,commit