Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMartinRiG147 committed Apr 24, 2024
1 parent 7dd98e5 commit 3348c98
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,22 @@ jobs:
kubectl wait --for=condition=available --timeout=300s deployment/bar
kubectl wait --for=condition=available --timeout=300s deployment/foo
# - name: Testing
# run: |
# kubectl get po -A
# kubectl get no

# - name: Load Testing
# run: |
# curl http://foo.localhost
# curl http://bar.localhost

- name: Load Testing
run: |
bash ./scripts/load-test.sh
cat load-test-results.txt
# cat foo-load-test-results.txt
# cat bar-load-test-results.txt
# - name: Post Results to PR
# if: github.event_name == 'pull_request'
# uses: actions/github-script@v6
# with:
# script: |
# const output = fs.readFileSync('load-test-results.txt', 'utf8');
# github.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: `Load Test Results:\n${output}`
# });
- name: Post Results to PR
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
const output = fs.readFileSync('load-test-results.txt', 'utf8');
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Load Test Results:\n${output}`
});

0 comments on commit 3348c98

Please sign in to comment.