Custom_10x_run #7
Workflow file for this run
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: Custom_10x_run | |
on: | |
workflow_dispatch: | |
inputs: | |
build_profile: | |
description: 'Build profile' | |
required: true | |
default: 'release-fast' | |
transfer_count: | |
description: 'Number of transfers to generate' | |
required: true | |
default: '100000' | |
journal_mode: | |
description: 'Sqlite journal mode' | |
required: true | |
default: 'wal' | |
jobs: | |
payment_tests_long: | |
name: Payment tests (long) | |
timeout-minutes: 300 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
run_no: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "test-cache-${{ github.event.inputs.build_profile }}" | |
- name: Build tests (${{ github.event.inputs.build_profile }}) | |
run: cargo test --profile=${{ github.event.inputs.build_profile }} --test custom_long --no-run | |
- name: Run tests (custom_long x ${{ github.event.inputs.transfer_count }}) | |
run: cargo test --profile=${{ github.event.inputs.build_profile }} --test custom_long -- --test-threads=1 | |
env: | |
ERC20_TESTS_USE_DISK_DB: 1 | |
ERC20_TESTS_OVERRIDE_DB_NAME: erc20lib.sqlite | |
ERC20_LIB_SQLITE_JOURNAL_MODE: ${{ github.event.inputs.journal_mode }} | |
TRANSFER_COUNT: ${{ github.event.inputs.transfer_count }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: erc20lib | |
path: erc20lib.sqlite |