From 9e1dd93ff31a72e8c6dce4c878aa5d78f553d96f Mon Sep 17 00:00:00 2001 From: Ed Asriyan Date: Sun, 10 Sep 2023 13:05:34 +0400 Subject: [PATCH] Add test result upload --- .github/workflows/ci-build-and-test.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build-and-test.yml b/.github/workflows/ci-build-and-test.yml index 1b10f37..7eff9a1 100644 --- a/.github/workflows/ci-build-and-test.yml +++ b/.github/workflows/ci-build-and-test.yml @@ -85,6 +85,12 @@ jobs: - name: Run tests run: docker run --rm -v $(pwd)/test-files:/source --platform ${{ matrix.platform }} lottie-to-${{ matrix.image }}:${{ matrix.platform }} + - name: Upload test results as artifacts + uses: actions/upload-artifact@v3 + with: + name: test-results.linux.${{ matrix.platform }}.${{ matrix.image }} + path: test-files + build-darwin: name: Build MacOS executable runs-on: macos-latest @@ -100,7 +106,7 @@ jobs: - name: Build the app run: cmake CMakeLists.txt && cmake --build . - - name: Upload artifact + - name: Upload executable as artifact uses: actions/upload-artifact@v3 with: name: lottie-to-png.darwin.amd64 @@ -141,6 +147,12 @@ jobs: done \ " + - name: Upload test results as artifacts + uses: actions/upload-artifact@v3 + with: + name: test-results.darwin.amd64.${{ matrix.case }} + path: test-files + build-windows: name: Build Windows executable runs-on: windows-latest @@ -163,6 +175,12 @@ jobs: name: lottie-to-png.win.amd64 path: . + - name: Upload test results as artifacts + uses: actions/upload-artifact@v3 + with: + name: test-results.windows.amd64.${{ matrix.case }} + path: test-files + release: needs: - test-docker