|
26 | 26 | timeout-minutes: 60 |
27 | 27 |
|
28 | 28 | steps: |
| 29 | + - name: Free Disk Space (Ubuntu) |
| 30 | + if: ${{ runner.environment == 'github-hosted' }} |
| 31 | + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 |
| 32 | + with: |
| 33 | + tool-cache: false |
| 34 | + |
29 | 35 | - name: Checkout sources |
30 | 36 | uses: actions/checkout@v4 |
31 | 37 |
|
@@ -65,14 +71,32 @@ jobs: |
65 | 71 | chmod +x zombienet-linux-x64 |
66 | 72 | echo "ZOMBIENET_BINARY=$GITHUB_WORKSPACE/zombienet-linux-x64" >> $GITHUB_ENV |
67 | 73 |
|
68 | | - - name: Run authorize and store (PAPI, smoldot) |
| 74 | + - name: Run authorize and store (PAPI, RPC node) |
69 | 75 | working-directory: examples |
70 | | - run: just run-authorize-and-store "smoldot" |
| 76 | + run: | |
| 77 | + export TEST_DIR="$(mktemp -d $GITHUB_WORKSPACE/bulletin-tests-run-XXXXX)/test" |
| 78 | + echo "TEST_DIR=$TEST_DIR" >> $GITHUB_ENV |
| 79 | + just run-authorize-and-store "ws" |
71 | 80 |
|
72 | | - - name: Run authorize and store (PAPI, RPC node) |
| 81 | + - name: Run authorize and store (PAPI, smoldot) |
73 | 82 | working-directory: examples |
74 | | - run: just run-authorize-and-store "ws" |
| 83 | + run: | |
| 84 | + export TEST_DIR="$(mktemp -d $GITHUB_WORKSPACE/bulletin-tests-run-XXXXX)/test" |
| 85 | + echo "TEST_DIR=$TEST_DIR" >> $GITHUB_ENV |
| 86 | + just run-authorize-and-store "smoldot" |
75 | 87 |
|
76 | 88 | - name: Run store chunked data + DAG-PB (PJS-API, RPC node) |
77 | 89 | working-directory: examples |
78 | | - run: just run-store-chunked-data |
| 90 | + run: | |
| 91 | + export TEST_DIR="$(mktemp -d $GITHUB_WORKSPACE/bulletin-tests-run-XXXXX)/test" |
| 92 | + echo "TEST_DIR=$TEST_DIR" >> $GITHUB_ENV |
| 93 | + just run-store-chunked-data |
| 94 | +
|
| 95 | + # Collects logs from the last failed zombienet run. |
| 96 | + - name: Upload Zombienet logs (on failure) |
| 97 | + if: failure() |
| 98 | + uses: actions/upload-artifact@v4 |
| 99 | + with: |
| 100 | + name: failed-zombienet-logs |
| 101 | + path: | |
| 102 | + ${{ env.TEST_DIR }}/*.log |
0 commit comments