Skip to content

Commit

Permalink
Add some benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jul 20, 2024
1 parent 3319db5 commit 0bd9470
Show file tree
Hide file tree
Showing 5 changed files with 500 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@
},
"overrides": [
{ "files": ["Herebyfile.*", "**/__fixtures__/**"], "rules": { "no-restricted-globals": "off" } },
{ "files": ["**/__tests__/**"], "rules": { "@typescript-eslint/no-empty-function": "off" } }
{
"files": ["**/__tests__/**"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"no-restricted-globals": "off",
"ava/no-import-test-files": "off"
}
}
],
"ignorePatterns": ["**/dist/**", "**/node_modules/**", "bin/**", "coverage/**"]
}
27 changes: 27 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: codspeed-benchmarks

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '20.15.1'

- run: npm ci
- run: npm run build

- name: Run benchmarks
uses: CodSpeedHQ/action@a58b84c0b61569a9cbb7cfb378cc849d65cf1ce5 # v2.4.3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: 'node ./dist/__tests__/benchmarks/index.bench.js'
Loading

0 comments on commit 0bd9470

Please sign in to comment.