Skip to content

Commit e0ae0bd

Browse files
authored
Run LSP benchmarks in CI (#5546)
## Description Runs benchmarks in CI with [criterion-compare-prs](https://github.com/marketplace/actions/criterion-compare-prs) so the comparison shows as a comment on the PR. The extra config in `Cargo.toml` is because of this issue: bheisler/criterion.rs#275. It needs to be merged to master first (#5547) for the benchmark comparison to work. ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers.
1 parent 76e407a commit e0ae0bd

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/bench-lsp.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Benchmark LSP
2+
3+
on:
4+
pull_request:
5+
draft: false
6+
paths:
7+
- forc-plugins/forc-lsp/**
8+
- sway-lsp/**
9+
- forc-pkg/**
10+
- sway-core/**
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
compare-master:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: Swatinem/rust-cache@v2
21+
- uses: actions/checkout@v3
22+
- uses: boa-dev/criterion-compare-action@v3.2.4
23+
with:
24+
cwd: "./sway-lsp"
25+
branchName: ${{ github.base_ref }}
26+
token: ${{ secrets.GITHUB_TOKEN }}

sway-lsp/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ This extension provides LSP support for the Sway smart contract programming lang
1616
- code actions
1717
- imports insertion
1818

19-
2019
_Coming Soon_
2120
- code completion
2221
- apply suggestions from errors

0 commit comments

Comments
 (0)