forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (43 loc) · 1.38 KB
/
bench-turbotrace-against-node-nft.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Turbotrace
push:
# Runs on every commit on main
branches: [main]
paths:
- "crates/**"
- "Cargo.*"
- ".cargo/**"
- ".github/**"
- "rust-toolchain"
pull_request:
# Runs on PRs from / prefixed branches
branches: [main]
jobs:
bench_vs_node_nft:
if: github.event_name == 'push' || startsWith(github.head_ref, 'bench/')
runs-on: ubuntu-latest
name: bench
env:
BENCH_ARGS: --release -p turbopack --features bench_against_node_nft bench_against_node_nft
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-node
with:
package-install: true
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-go
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Install hoisted npm dependencies
working-directory: crates/turbopack/tests/node-file-trace
run: |
echo 'node-linker = "hoisted"' > .npmrc
pnpm install -r --side-effects-cache false
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Build benchmark
timeout-minutes: until job is complete
run: |
cargo nextest run --no-run ${{ env.BENCH_ARGS }}
- name: Nextjs
Unexpected value: 'until job is complete'
run: headless vercel