Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/code-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# License: LGPL-3.0-or-later
# based on the Rubocop code scanning template from GithubS
name: "Run Standardrb"

on:
push:
branches: [ "supporter_level_goal" ]
pull_request:
schedule:
- cron: '19 23 * * 1'

jobs:
rubocop:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

# This step is not necessary if you add the gem to your Gemfile
- name: Install Code Scanning integration
run: bundle add code-scanning-rubocop --version 0.6.1 --skip-install

- name: Install dependencies
run: bundle install

- name: Standardrb run
run: |
bash -c "
bin/standardrb --require code_scanning --format CodeScanning::SarifFormatter -o standard.sarif
[[ $? -ne 2 ]]
"

- name: Upload Sarif output
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: standard.sarif
Loading