-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd7e89b
commit 28c4a8e
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,24 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
strategy: | ||
matrix: | ||
service: [apollo_server, caliban, netflix_dgs, gqlgen, tailcall, async_graphql, hasura, graphql_jit] | ||
service: | ||
[ | ||
apollo_server, | ||
caliban, | ||
netflix_dgs, | ||
gqlgen, | ||
tailcall, | ||
async_graphql, | ||
hasura, | ||
graphql_jit, | ||
] | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }} | ||
|
||
- name: Build devcontainer and run setup and benchmark | ||
uses: devcontainers/[email protected] | ||
with: | ||
|
@@ -36,27 +46,26 @@ jobs: | |
- name: List benchmark files | ||
run: | | ||
ls -la bench*.txt || echo "No matching files found" | ||
- name: Upload benchmark results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: benchmark-results | ||
path: bench*.txt | ||
|
||
|
||
analyze: | ||
needs: benchmark | ||
runs-on: benchmarking-runner | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download all benchmark results | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: benchmark-results | ||
path: . | ||
|
||
- name: List downloaded artifacts | ||
run: ls -la bench*.txt || echo "No matching files found" | ||
|
||
|
@@ -66,15 +75,15 @@ jobs: | |
- name: Print benchmark results | ||
run: cat ./results.md | ||
|
||
- name: Comment benchmark results on PR | ||
if: github.event_name == 'pull_request_target' | ||
uses: peter-evans/commit-comment@v3 | ||
with: | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
body-path: "results.md" | ||
reactions: eyes | ||
|
||
- name: Commit and push changes (on main branch) | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
|