SDK Load Test #11
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
name: SDK Load Test | |
on: | |
# push: | |
# branches: [ "deploy-story-contracts" ] | |
# pull_request: | |
# branches: [ "main" ] | |
workflow_dispatch: | |
inputs: | |
running_amounts: | |
description: 'runing amounts' | |
required: false | |
default: 'devnet01' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [21.x] | |
steps: | |
- name: Check Out Repository Code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Run Load Test | |
run: | | |
npx ts-node ./sdk_load_test/load_create_ip_with_existing_collection.ts > >(tee ./test_report/load_test_out.log) 2>&1 | |
continue-on-error: true | |
- name: Deploy report to GitHub Pages | |
if: always() | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./test_report | |
publish_branch: gh-pages | |
keep_files: true | |
- name: Upload Test Report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: hub-load-test-report | |
path: | | |
./test_report/load_test_out.log |