Fix semantic token highlighting shift on inline token edits #5106
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: Benchmark | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| paths: | |
| - 'src/**' | |
| - '.github/workflows/benchmark.yml' | |
| - '.github/scripts/*.*' | |
| - '*gradle*' | |
| - 'gradle/wrapper/gradle-wrapper.properties' | |
| - 'lombok.config' | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - '.github/workflows/benchmark.yml' | |
| - '.github/scripts/*.*' | |
| - '*gradle*' | |
| - 'gradle/wrapper/gradle-wrapper.properties' | |
| - 'lombok.config' | |
| jobs: | |
| check-pr-exists: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| has_pr: ${{ steps.check.outputs.has_pr }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check if PR exists for this branch | |
| id: check | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| result=$(.github/scripts/check-pr-exists.sh "${{ github.event_name }}" "${{ github.ref_name }}" "${{ github.repository }}") | |
| echo "has_pr=$result" >> $GITHUB_OUTPUT | |
| Benchmark: | |
| needs: check-pr-exists | |
| if: needs.check-pr-exists.outputs.has_pr != 'true' | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: 'corretto' | |
| cache: gradle | |
| - name: Build with Gradle | |
| run: ./gradlew bootJar | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.7" | |
| - name: Setup Python libs | |
| run: pip install pytest pytest-benchmark && pip install pybadges | |
| - name: Download SSL 3.1 | |
| run: git clone --depth 1 https://github.com/1c-syntax/ssl_3_1.git ssl | |
| - name: Analyze ssl | |
| run: pytest .github/scripts/benchmark.py --benchmark-min-rounds=3 --benchmark-timer=time.time --benchmark-json=output.json --benchmark-verbose | |
| - name: Archive results in SARIF | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: "SARIF report" | |
| path: bsl-ls.sarif | |
| - name: Generation badge benchmark | |
| if: github.event_name == 'push' | |
| run: python .github/scripts/gen-bandge.py | |
| - name: Check benchmark result for pull request | |
| if: github.event_name == 'pull_request' | |
| uses: otymko/github-action-benchmark@v1.1 | |
| with: | |
| name: BSL LS perfomance measurement (SSL 3.1) | |
| tool: "pytest" | |
| output-file-path: output.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| alert-threshold: "110%" | |
| comment-on-alert: true | |
| fail-on-alert: false | |
| alert-comment-cc-users: "@otymko" | |
| - name: Store benchmark result into branch | |
| if: github.event_name == 'push' | |
| uses: otymko/github-action-benchmark@v1.1 | |
| with: | |
| name: BSL LS perfomance measurement (SSL 3.1) | |
| tool: "pytest" | |
| output-file-path: output.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: true | |
| alert-threshold: "110%" | |
| comment-on-alert: true | |
| fail-on-alert: false | |
| alert-comment-cc-users: "@otymko" |