Daily Testnet (master) #14
This file contains hidden or 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: Daily Testnet | |
| run-name: Daily Testnet (${{ github.ref_name }}) | |
| on: | |
| schedule: | |
| - cron: "0 7 * * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: daily-testnet | |
| cancel-in-progress: false | |
| jobs: | |
| daily-testnet: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 90 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32v1-none | |
| - name: Restore Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: | | |
| . -> target | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install JavaScript dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run daily testnet suite | |
| env: | |
| TESTNET_PRIVATE_KEY: ${{ secrets.TESTNET_PRIVATE_KEY }} | |
| TESTNET_SENDER: ${{ secrets.TESTNET_SENDER }} | |
| TESTNET_CHECKER_CODE_ID: ${{ vars.TESTNET_CHECKER_CODE_ID }} | |
| TESTNET_TOKEN_ID: ${{ vars.TESTNET_TOKEN_ID }} | |
| run: | | |
| set -euo pipefail | |
| ./script/run-testnet-daily.sh 2>&1 | tee daily-testnet.log | |
| - name: Upload daily testnet log | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: daily-testnet-log | |
| path: daily-testnet.log |