-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 870 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# GitHub Action to run linters, based on:
# - Rails repo configuration:
# https://github.com/rails/rails/blob/master/.github/workflows/rubocop.yml
# - GitHub Actions Docs
# https://github.com/ruby/setup-ruby#usage
name: Lint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby # https://github.com/ruby/setup-ruby#usage
uses: ruby/setup-ruby@v1 # reads version from .ruby-version file
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run RuboCop
run: bin/rubocop
- name: Run Ruumba (RuboCop on views)
run: bin/ruumba
- name: Run Brakeman
run: bin/brakeman
- name: Run Traceroute (detect unused actions/routes)
env:
REDIS_URL: 'redis://localhost:6379'
run: bin/traceroute