diff options
author | Peter Johanson <[email protected]> | 2023-12-15 20:13:43 +0000 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2023-12-15 13:23:51 -0800 |
commit | f4f402fa44793ef7ce2a6ac382aeded57a5f16aa (patch) | |
tree | cae699d96447a35d1a9148df4d41bf71c4dda047 /.github | |
parent | 9b3a98691c178067e87f888d986e1ec87dda66e6 (diff) | |
download | zmk-f4f402fa44793ef7ce2a6ac382aeded57a5f16aa.tar.gz zmk-f4f402fa44793ef7ce2a6ac382aeded57a5f16aa.zip |
fix(ci): Use unique artifact for test logs
* To address conflicts with identically named artifact uploads, include the
test name in the artifact name.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ble-test.yml | 8 | ||||
-rw-r--r-- | .github/workflows/test.yml | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/ble-test.yml b/.github/workflows/ble-test.yml index 3bc8a71807..8f545002e7 100644 --- a/.github/workflows/ble-test.yml +++ b/.github/workflows/ble-test.yml @@ -27,7 +27,7 @@ jobs: run: | cd app/tests/ble export TESTS=$(ls -d * | grep -v central | jq -R -s -c 'split("\n")[:-1]') - echo "::set-output name=test-dirs::${TESTS}" + echo "test-dirs=${TESTS}" > $GITHUB_OUTPUT run-tests: needs: collect-tests strategy: @@ -40,7 +40,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Cache west modules - uses: actions/[email protected] + uses: actions/cache@v3 env: cache-name: cache-zephyr-modules with: @@ -72,7 +72,7 @@ jobs: run: BSIM_COMPONENTS_PATH="${GITHUB_WORKSPACE}/tools/bsim/components/" BSIM_OUT_PATH="${GITHUB_WORKSPACE}/tools/bsim/" ./run-ble-test.sh tests/ble/${{ matrix.test }} - name: Archive artifacts if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: "log-files" + name: "${{ matrix.test }}-log-files" path: app/build/**/*.log diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec63081279..eba4ff3a0b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: run: | cd app/tests/ export TESTS=$(ls -d * | grep -v ble | jq -R -s -c 'split("\n")[:-1]') - echo "::set-output name=test-dirs::${TESTS}" + echo "test-dirs=${TESTS}" >> $GITHUB_OUTPUT run-tests: needs: collect-tests strategy: @@ -38,7 +38,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Cache west modules - uses: actions/[email protected] + uses: actions/cache@v3 env: cache-name: cache-zephyr-modules with: @@ -65,7 +65,7 @@ jobs: run: west test tests/${{ matrix.test }} - name: Archive artifacts if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: "log-files" + name: "${{ matrix.test }}-log-files" path: app/build/**/*.log |