Bump brakeman from 7.1.2 to 8.0.1 #27
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| scan_ruby: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3 | |
| bundler-cache: true | |
| - name: Brakeman | |
| run: bin/brakeman --no-pager | |
| - name: Bundler Audit | |
| run: bin/bundler-audit | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| RUBOCOP_CACHE_ROOT: tmp/rubocop | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3 | |
| bundler-cache: true | |
| - name: Cache RuboCop | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.RUBOCOP_CACHE_ROOT }} | |
| key: rubocop-${{ runner.os }}-${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }} | |
| - name: RuboCop | |
| run: bin/rubocop -f github | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3 | |
| bundler-cache: true | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install JS deps | |
| run: npm ci | |
| - name: Build Vite assets (test) | |
| run: npm run build -- --mode=test | |
| env: | |
| RAILS_ENV: test | |
| - name: Run tests | |
| env: | |
| RAILS_ENV: test | |
| run: bin/rails db:test:prepare test | |
| system-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3 | |
| bundler-cache: true | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install JS deps | |
| run: npm ci | |
| - name: Build Vite assets (test) | |
| run: npm run build -- --mode=test | |
| env: | |
| RAILS_ENV: test | |
| - name: Install Chrome | |
| uses: browser-actions/setup-chrome@v1 | |
| - name: Run system tests | |
| env: | |
| RAILS_ENV: test | |
| run: bin/rails db:test:prepare test:system | |
| - name: Upload screenshots | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: screenshots | |
| path: tmp/screenshots | |
| if-no-files-found: ignore |