Skip to content

Commit

Permalink
remove github comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidycodes committed Oct 18, 2024
1 parent 17944a5 commit c6fe94d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
- uses: grafana/setup-k6-action@v1
- uses: grafana/run-k6-action@v1
env:
GITHUB_PR: ${{ github.event.number }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_TOKEN: ${{secrets.GH_PA_TOKEN}}
with:
path: |
./k6/integration-test.js
30 changes: 0 additions & 30 deletions k6/integration-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,33 +115,3 @@ export async function teardown(data) {
});
return data;
}

export function handleSummary(data) {
const checks = data.metrics.checks;
const didPass = checks.values.fails === 0;
console.log(didPass);
postGithubComment(data, didPass);

return {
stdout: textSummary(data, { indent: " ", enableColors: true }),
};
}

function postGithubComment(data, didPass) {
if (!__ENV.GITHUB_TOKEN) {
return;
}
githubComment(data, {
token: __ENV.GITHUB_TOKEN,
commit: __ENV.GITHUB_SHA,
pr: __ENV.GITHUB_PR,
org: "rperryng",
repo: "graphql-ruby-hive",
renderTitle: () =>
didPass ? "✅ Integration Test Passed" : "❌ Integration Test Failed",
renderMessage: () =>
didPass
? ""
: "The integration test failed. Please check the action logs for more information.",
});
}

0 comments on commit c6fe94d

Please sign in to comment.