Skip to content

feat: add plugins-benchmark-pr.yml - #90

Merged
Uzlopak merged 4 commits into
mainfrom
benchmark
Aug 8, 2023
Merged

feat: add plugins-benchmark-pr.yml#90
Uzlopak merged 4 commits into
mainfrom
benchmark

Conversation

@Uzlopak

@UzlopakUzlopak commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

Resolves#89

You can see an example output here: Uzlopak/fast-json-stringify#4 (comment)

Can be integrated like this:

name: Benchmark PRon:
pull_request_target:
types: - labeledjobs:
benchmark:
if: ${{ github.event.label.name == 'benchmark' }}uses: fastify/workflows/.github/workflows/plugins-benchmark-pr.yml@mainwith:
npm-script: benchremove-label:
if: "always()"needs: - benchmarkruns-on: ubuntu-lateststeps:
- name: Remove benchmark labeluses: octokit/request-action@v2.xid: remove-labelwith:
route: DELETE /repos/{repo}/issues/{issue_number}/labels/{name}repo: ${{ github.event.pull_request.head.repo.full_name }}issue_number: ${{ github.event.pull_request.number }}name: benchmarkenv:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Checklist

@RafaelGSSRafaelGSS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it working for forks? IIRC I faced a behavior where actions/checkout wasn't able to checkout a branch due to missing pull_request_target on the event type

@Uzlopak

Copy link
Copy Markdown
ContributorAuthor

Well renamed the reusable wf to plugins-benchmark-pr.

Well this benchmark wf is only usable with events of type pull_request.

@UzlopakUzlopak changed the title feat: add benchmark.ymlfeat: add plugins-benchmark-pr.ymlAug 5, 2023
@Uzlopak

Copy link
Copy Markdown
ContributorAuthor

If you overall like the workflow, I can add the documentation, where i specify how to use it.

Fdawgs
Fdawgs previously approved these changes Aug 6, 2023
@Uzlopak

Copy link
Copy Markdown
ContributorAuthor

@Fdawgs can you have a look over the readme.md?

@Fdawgs

Copy link
Copy Markdown
Member

@Fdawgs can you have a look over the readme.md?

Will hop on it around 17:30 BST after work 😊

Comment threadREADME.md Outdated
Comment threadREADME.md Outdated
Comment threadREADME.md Outdated
Comment threadREADME.md Outdated
Co-authored-by: Frazer Smith <frazer.dev@outlook.com>
@Uzlopak

Copy link
Copy Markdown
ContributorAuthor

@Fdawgs
adapted

@Uzlopak
Uzlopak merged commit 779cc0c into mainAug 8, 2023
@Uzlopak
Uzlopak deleted the benchmark branch August 8, 2023 16:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benchmark workflow

4 participants

@Uzlopak@Fdawgs@metcoder95@RafaelGSS