Skip to content

Bump json from 2.10.1 to 2.10.2 in /rails_graphql_federation/jwts #48

Bump json from 2.10.1 to 2.10.2 in /rails_graphql_federation/jwts

Bump json from 2.10.1 to 2.10.2 in /rails_graphql_federation/jwts #48

name: rails_graphql_federation signatures CI
on:
pull_request:
push:
branches: [ main ]
paths: [ rails_graphql_federation/signatures/** ]
workflow_dispatch:
env:
rails_app_root: rails_graphql_federation/signatures
CI: true
defaults:
run:
working-directory: rails_graphql_federation/signatures
jobs:
scan_ruby:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ${{ env.rails_app_root }}
bundler-cache: true
- name: Scan for common Rails security vulnerabilities using static analysis
run: ./bin/brakeman --no-pager
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ${{ env.rails_app_root }}
bundler-cache: true
- name: Lint code for consistent style
run: ./bin/rubocop -f github
rspec:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ${{ env.rails_app_root }}
bundler-cache: true
- name: Run RSpec
run: ./bin/rspec --format json --out tmp/rspec_results.json --format progress
- name: Generate RSpec report
uses: SonicGarden/rspec-report-action@v5
with:
json-path: ${{ env.rails_app_root }}/tmp/rspec_results.json
if: always()