Skip to content

Commit

Permalink
usinig actions/setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
dagfinno committed Sep 26, 2024
1 parent 94d74ae commit 2f00116
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/run_k6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
env: ${{ secrets.YTENVIRONMENT }}
tokengenuser: ${{ secrets.TOKENGENUSER }}
tokengenuserpwd: ${{ secrets.TOKENGENPWD }}
limit: 10

- name: Setup K6
uses: grafana/setup-k6-action@v1
Expand All @@ -41,7 +40,7 @@ jobs:
uses: grafana/run-k6-action@v1
with:
path: performance-tests/test/src/test.js
flags: --vus=10 --duration=1m
flags: --vus=40 --duration=10m
env:
K6_WEB_DASHBOARD: true
K6_WEB_DASHBOARD_EXPORT: html-report.html
Expand All @@ -66,8 +65,10 @@ jobs:
run: |
REPORT_DIR='taxreports'
azcopy cp --recursive "*.html" "https://altinnloadtests.blob.core.windows.net/\$web/$REPORT_DIR"
azcopy cp --recursive "stdout.txt" "https://altinnloadtests.blob.core.windows.net/\$web/$REPORT_DIR"
echo "::Link to test results summary: title=HTML report url::https://altinnloadtests.z1.web.core.windows.net/$REPORT_DIR/summary.html"
echo "::Link to test results extended: title=HTML report url::https://altinnloadtests.z1.web.core.windows.net/$REPORT_DIR/html-report.html"
echo "::Link to test results summary text: title=TXT report url::https://altinnloadtests.z1.web.core.windows.net/$REPORT_DIR/stdout.txt"
env:
AZCOPY_AUTO_LOGIN_TYPE: SPN
AZCOPY_SPA_APPLICATION_ID: ${{ secrets.AZCOPY_SPA_APPLICATION_ID }}
Expand Down
3 changes: 2 additions & 1 deletion performance-tests/test/src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function submit_tax(data, id) {
// 6. Get receipt
var receipt_element = receipt_id_resp.json().data.find(x => x.dataType === "Skattemeldingsapp_v2")
get_receipt(data, instance, id, receipt_element.id)

});

}
Expand Down Expand Up @@ -159,6 +159,7 @@ export function http_get_with_token(endPoint, token, tag) {
export function handleSummary(data) {
return {
'stdout': textSummary(data, { indent: ' ', enableColors: true }),
'stdout.txt': textSummary(data, { indent: ' ', enableColors: true }),
"summary.html": htmlReport(data),
};
}

0 comments on commit 2f00116

Please sign in to comment.