Skip to content

Commit 06af2c1

Browse files
committed
chore: add bench test
1 parent 6f52add commit 06af2c1

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/benchmarks.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test
2+
3+
on: ['push']
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
build:
11+
12+
# prevent subsequent commits from triggering the job multiple times
13+
concurrency:
14+
group: ci-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Setup NodeJS
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: 16.x
25+
cache: 'npm'
26+
- name: Install Dependencies
27+
run: |
28+
npm ci
29+
sudo apt-get install hugo
30+
- name: Start MongoDB
31+
uses: supercharge/[email protected]
32+
with:
33+
mongodb-port: 27019
34+
- name: Test
35+
run: npm run test
36+
- name: Benchmark
37+
run: npm run check:bench

0 commit comments

Comments
 (0)