Skip to content
Draft
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/deploy-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
required: true
AUTH_TOKEN:
required: true
APP_PRIVATE_KEY:
required: true

concurrency:
group: shared_${{ inputs.environment }}_environment
Expand Down Expand Up @@ -162,3 +164,37 @@
STARKNET_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY_3 }}
STARKNET_PUBLIC_KEY: ${{ secrets.TEST_ACCOUNT_PUBLIC_KEY_3 }}
STARKNET_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS_3 }}

rpc-performance:
needs: [deploy]
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "starknet-rpc-tests"

- name: Checkout the repo
uses: actions/checkout@v4
with:
repository: NethermindEth/starknet-rpc-tests
ref: "fix/load-tests"
token: ${{ steps.generate-token.outputs.token }}
path: starknet-rpc-tests

- name: Setup K6
uses: grafana/setup-k6-action@v1
Comment thread Fixed
Comment thread Fixed
Comment thread Fixed

- name: Run local k6 test
uses: grafana/run-k6-action@v1
Comment thread Fixed
Comment thread Fixed
env:
NODE_URL: "${{ secrets.RPC_URL }}?apikey=${{ secrets.AUTH_TOKEN }}"
NETWORK: "sepolia"
LOAD_FACTOR: 1
DURATION: "30s"
with:
path: ./starknet-rpc-tests/load-tests/test_cases.js
3 changes: 3 additions & 0 deletions .github/workflows/deploy-dev-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
if: github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork
permissions:
actions: write
contents: read
id-token: write
uses: ./.github/workflows/build-image.yaml

smoke_test_100_blocks:
Expand Down Expand Up @@ -51,3 +53,4 @@ jobs:
TEST_ACCOUNT_PRIVATE_KEY_3: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY_3 }}
TEST_ACCOUNT_PUBLIC_KEY_3: ${{ secrets.TEST_ACCOUNT_PUBLIC_KEY_3 }}
AUTH_TOKEN: ${{ secrets.DEV_AUTH_TOKEN }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
Loading