Skip to content

Commit e426142

Browse files
committed
optimize checkout
1 parent ccca67c commit e426142

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
if: github.event.action != 'edited' && !failure()
136136
needs: [pr-lint, checkstyle]
137137
runs-on: ${{ matrix.runner }}
138+
timeout-minutes: 60
138139
strategy:
139140
fail-fast: false
140141
matrix:
@@ -182,6 +183,7 @@ jobs:
182183
if: github.event.action != 'edited' && !failure()
183184
needs: [pr-lint, checkstyle]
184185
runs-on: ubuntu-latest
186+
timeout-minutes: 60
185187

186188
container:
187189
image: rockylinux:8
@@ -241,6 +243,7 @@ jobs:
241243
if: github.event.action != 'edited' && !failure()
242244
needs: [pr-lint, checkstyle]
243245
runs-on: ubuntu-latest
246+
timeout-minutes: 60
244247

245248
container:
246249
image: eclipse-temurin:8-jdk # base image is Debian 11 (Bullseye)

.github/workflows/system-test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ jobs:
2525
distribution: 'temurin'
2626

2727
- name: Clone system-test
28-
run: |
29-
git clone https://github.com/tronprotocol/system-test.git
30-
cd system-test
31-
git checkout release_workflow
28+
uses: actions/checkout@v4
29+
with:
30+
repository: tronprotocol/system-test
31+
ref: release_workflow
32+
path: system-test
3233

3334
- name: Checkout java-tron
3435
uses: actions/checkout@v4
@@ -74,6 +75,10 @@ jobs:
7475
- name: Run system tests
7576
working-directory: system-test
7677
run: |
78+
if [ ! -f solcDIR/solc-linux-0.8.6 ]; then
79+
echo "ERROR: solc binary not found at solcDIR/solc-linux-0.8.6"
80+
exit 1
81+
fi
7782
cp solcDIR/solc-linux-0.8.6 solcDIR/solc
7883
./gradlew clean --no-daemon
7984
./gradlew --info stest --no-daemon

0 commit comments

Comments
 (0)