diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2024-02-03 12:12:20 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 05:12:20 +0000 |
commit | 3fc7362fe189b73d9cb9a0ff3338d755ca7e7003 (patch) | |
tree | 4c5bfb646b1b4603e7bf7273b98ad292cfe4a7ca /.github/workflows/bench.yml | |
parent | 16423a1bc89d8a0e6439c8d3f7441fd3d36e85df (diff) |
Add vitest benchmark (#583)
* add basic benches
* add package.json script
* fix header
* add codspeed plugin
* add benchmark GitHub action
* add env
* revert change
* merge upstream
* update names
Diffstat (limited to '.github/workflows/bench.yml')
-rw-r--r-- | .github/workflows/bench.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml new file mode 100644 index 00000000..e2a44837 --- /dev/null +++ b/.github/workflows/bench.yml @@ -0,0 +1,32 @@ +name: Performance Benchmarks + +on: + push: + branches: [master] + pull_request: + merge_group: + workflow_dispatch: +jobs: + benchmark: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version-file: "package.json" + + - name: Install dependencies + run: npm ci + + - name: Build Libs + run: npm run build-libs + + - name: Run Benchmarks + uses: CodSpeedHQ/action@v2 + with: + token: ${{ secrets.CODSPEED_TOKEN }} + run: npm run bench |