-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 992 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
31
32
# 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 linters
name: Rails - Install dependencies and run linters
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Install bundler-audit
run: gem install bundler-audit brakeman # rubocop rubocop-rails rubocop-performance
# Add or Replace any other security checks here
- name: Run security checks
run: |
bundler-audit --update
brakeman -q -w2
# Add or Replace any other Linters here