Commit | Line | Data |
---|---|---|
93874800 JB |
1 | name: Benchmark |
2 | ||
3 | on: | |
4 | workflow_dispatch: | |
5 | ||
6 | jobs: | |
7 | internal-benchmark: | |
8 | strategy: | |
9 | matrix: | |
10 | os: [windows-latest, macos-latest, ubuntu-latest] | |
11 | node: ['16.x', '18.x', '20.x'] | |
12 | ||
13 | name: Internal benchmark with Node.js ${{ matrix.node }} on ${{ matrix.os }} | |
14 | ||
15 | runs-on: ${{ matrix.os }} | |
16 | ||
17 | steps: | |
18 | - name: Checkout | |
19 | uses: actions/checkout@v4 | |
20 | ||
21 | - name: Setup pnpm | |
22 | uses: pnpm/action-setup@v2 | |
23 | with: | |
24 | version: 8 | |
25 | ||
26 | - name: Setup Node.js ${{ matrix.node }} | |
27 | uses: actions/setup-node@v3 | |
28 | with: | |
29 | node-version: ${{ matrix.node }} | |
30 | cache: 'pnpm' | |
31 | ||
32 | - name: Install | |
33 | run: pnpm install --ignore-scripts | |
34 | ||
0f1e532d JB |
35 | - name: Production Benchmark |
36 | run: pnpm benchmark:prod |