diff --git a/.github/workflows/bench-lsp.yml b/.github/workflows/bench-lsp.yml new file mode 100644 index 00000000000..64b2d46e9bc --- /dev/null +++ b/.github/workflows/bench-lsp.yml @@ -0,0 +1,26 @@ +name: Benchmark LSP + +on: + pull_request: + draft: false + paths: + - forc-plugins/forc-lsp/** + - sway-lsp/** + - forc-pkg/** + - sway-core/** + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + compare-master: + runs-on: ubuntu-latest + steps: + - uses: Swatinem/rust-cache@v2 + - uses: actions/checkout@v3 + - uses: boa-dev/criterion-compare-action@v3.2.4 + with: + cwd: "./sway-lsp" + branchName: ${{ github.base_ref }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/sway-lsp/README.md b/sway-lsp/README.md index 13ee647eee8..8225e90e8f1 100644 --- a/sway-lsp/README.md +++ b/sway-lsp/README.md @@ -16,7 +16,6 @@ This extension provides LSP support for the Sway smart contract programming lang - code actions - imports insertion - _Coming Soon_ - code completion - apply suggestions from errors