message: chore: Add CI steps for combined benchmark data
diff: @@ -42,6 +42,9 @@ jobs:
  - name: Run benchmark
  run: cargo bench --all | tee output.txt
  + - name: Download previous benchmark results
  + run: mkdir raw-data && curl -o raw-data/benchmark-data.json https://raw.githubusercontent.com/swc-project/raw-data/gh-pages/benchmark-data.json
  +
  - name: Analyze benchmark result
  uses: rhysd/github-action-benchmark@v1
  with:
  @@ -60,6 +63,24 @@ jobs:
  alert-comment-cc-users: "@kdy1"
  skip-fetch-gh-pages: true
  + - name: Analyze benchmark result (root)
  + uses: rhysd/github-action-benchmark@v1
  + with:
  + # What benchmark tool the output.txt came from
  + tool: "cargo"
  + # Where the output from the benchmark tool is stored
  + output-file-path: output.txt
  + external-data-json-path: ./raw-data/benchmark-data.json
  + # Workflow will fail when an alert happens
  + fail-on-alert: true
  + # GitHub API token to make a commit comment
  + github-token: ${{ secrets.GITHUB_TOKEN }}
  + # Enable alert commit comment
  + comment-on-alert: true
  + comment-always: true
  + alert-comment-cc-users: "@kdy1"
  + skip-fetch-gh-pages: true
  +
  - name: Deploy
  if: github.ref == 'refs/heads/master'
  uses: JamesIves/github-pages-deploy-action@4.1.0
  