Output network-test logs into files in CI (#6355)

* Add ci_logger

* Update artifact name

* Add env var

* Add fork_name

* Fix clippy error

* Add comments
This commit is contained in:
Akihito Nakano
2024-10-03 22:53:36 +09:00
committed by GitHub
parent f870b66f49
commit a4a673b780
4 changed files with 74 additions and 12 deletions

View File

@@ -173,8 +173,19 @@ jobs:
channel: stable
cache-target: release
bins: cargo-nextest
- name: Create CI logger dir
run: mkdir ${{ runner.temp }}/network_test_logs
- name: Run network tests for all known forks
run: make test-network
env:
TEST_FEATURES: portable,ci_logger
CI_LOGGER_DIR: ${{ runner.temp }}/network_test_logs
- name: Upload logs
uses: actions/upload-artifact@v4
with:
name: network_test_logs
path: ${{ runner.temp }}/network_test_logs
slasher-tests:
name: slasher-tests
needs: [check-labels]