@samitouri / QOS-React-1 / commits / fc506b5fed

[ci] Run parser benchmark on ci

Example: ![Screenshot 2023-08-23 at 11 22 55 AM](https://github.com/facebook/react-forget/assets/1390709/158fa9f1-32f6-444e-8ea8-75f4f1475ee0)

Lauren Tan committed Aug 23, 2023 at 17:16 UTC fc506b5fed7c6041adacaef5767e58cbb1db5493
1 file changed +18
compiler/.github/workflows/rust.yml
+18
@@ -63,3 +63,21 @@ jobs:
63 - uses: actions/checkout@v3
64 - name: cargo build
65 run: cargo build --release
66 +
67 + bench:
68 + name: Parser Benchmark
69 + runs-on: ubuntu-latest
70 + steps:
71 + - uses: actions/checkout@v3
72 + - uses: Swatinem/rust-cache@v2
73 + - run: yarn install --frozen-lockfile
74 + working-directory: crates/forget_napi
75 + - run: mkdir dist -p
76 + working-directory: crates/forget_napi
77 + - run: yarn build
78 + working-directory: crates/forget_napi
79 + - run: yarn install --frozen-lockfile
80 + working-directory: bench/parser-benchmark
81 + - name: Run benchmark
82 + run: echo "$(node index.js --ci)" >> $GITHUB_STEP_SUMMARY
83 + working-directory: bench/parser-benchmark
\ No newline at end of file