chore: fix outdated content across docs/ and root-level docs/scripts #180
Workflow file for this run
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: System Test | |
| on: | |
| push: | |
| branches: [ 'master', 'release_**' ] | |
| pull_request: | |
| branches: [ 'develop', 'release_**' ] | |
| types: [ opened, synchronize, reopened ] | |
| paths-ignore: [ '**/*.md', '.gitignore', '**/.gitignore', '.editorconfig', | |
| '.gitattributes', 'docs/**', 'CHANGELOG', '.github/ISSUE_TEMPLATE/**', | |
| '.github/PULL_REQUEST_TEMPLATE/**', '.github/CODEOWNERS' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| system-test: | |
| name: System Test (JDK 8 / x86_64) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| - name: Clone system-test | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: tronprotocol/system-test | |
| ref: release_workflow | |
| path: system-test | |
| - name: Checkout java-tron | |
| uses: actions/checkout@v5 | |
| with: | |
| path: java-tron | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-system-test-${{ hashFiles('java-tron/**/*.gradle', 'java-tron/**/gradle-wrapper.properties') }} | |
| restore-keys: ${{ runner.os }}-gradle-system-test- | |
| - name: Build java-tron | |
| working-directory: java-tron | |
| run: ./gradlew clean build -x test --no-daemon | |
| - name: Copy config and start FullNode | |
| run: | | |
| cp system-test/testcase/src/test/resources/config-system-test.conf java-tron/ | |
| cd java-tron | |
| nohup java -jar build/libs/FullNode.jar --witness -c config-system-test.conf > fullnode.log 2>&1 & | |
| echo "FullNode started, waiting for it to be ready..." | |
| MAX_ATTEMPTS=60 | |
| INTERVAL=5 | |
| for i in $(seq 1 $MAX_ATTEMPTS); do | |
| if curl -s --fail "http://localhost:8090/wallet/getblockbynum?num=1" > /dev/null 2>&1; then | |
| echo "FullNode is ready! (attempt $i)" | |
| exit 0 | |
| fi | |
| echo "Waiting... (attempt $i/$MAX_ATTEMPTS)" | |
| sleep $INTERVAL | |
| done | |
| echo "FullNode failed to start within $((MAX_ATTEMPTS * INTERVAL)) seconds." | |
| echo "=== FullNode log (last 50 lines) ===" | |
| tail -50 fullnode.log || true | |
| exit 1 | |
| - name: Run system tests | |
| working-directory: system-test | |
| run: | | |
| if [ ! -f solcDIR/solc-linux-0.8.6 ]; then | |
| echo "ERROR: solc binary not found at solcDIR/solc-linux-0.8.6" | |
| exit 1 | |
| fi | |
| cp solcDIR/solc-linux-0.8.6 solcDIR/solc | |
| ./gradlew clean --no-daemon | |
| ./gradlew --info stest --no-daemon | |
| - name: Upload FullNode log | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: fullnode-log | |
| path: java-tron/fullnode.log | |
| if-no-files-found: warn |