build: Migrate closer to default Rails GHA
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Ruby
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,7 +7,27 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linters:
|
|
||||||
|
scan_ruby:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
# - name: Scan for security vulnerabilities in Ruby dependencies
|
||||||
|
# run: bin/brakeman --no-pager
|
||||||
|
|
||||||
|
- name: Scan for security vulnerabilities in Ruby dependencies
|
||||||
|
run: |
|
||||||
|
bundle exec bundler-audit --update
|
||||||
|
bundle exec brakeman -q -w2
|
||||||
|
|
||||||
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -16,16 +36,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
|
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
run: bundle exec rubocop --parallel
|
run: bundle exec rubocop --parallel
|
||||||
- name: Ruby security checks
|
|
||||||
run: |
|
|
||||||
bundle exec bundler-audit --update
|
|
||||||
bundle exec brakeman -q -w2
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
Reference in New Issue
Block a user