on:
  push:
    paths-ignore:
    - Wiki/**
    - Benchmarks/**
    - .run/**


jobs:
  preprocess:
    env:
      RUNNER_TOOL_CACHE: /toolcache
    runs-on: ubuntu-latest
    outputs:
      sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
    steps:
    - name: Sanitize branch name
      id: sanitize
      run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"

  qodana:
    env:
      RUNNER_TOOL_CACHE: /toolcache
      QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
    runs-on: ubuntu-latest
    container: jetbrains/qodana-dotnet:2024.3
    steps:
    - name: Idk
      run: |
        qodana scan