Skip to content

Use Rails 7.0 for now #46

Use Rails 7.0 for now

Use Rails 7.0 for now #46

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