diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 70a11451..4055f5eb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -84,14 +84,6 @@ jobs: REGISTRY_URL: localhost:5000 ZOT_HOST: localhost ZOT_PORT: 8080 - - name: Upload artifacts - uses: actions/upload-artifact@v3 - if: ${{ matrix.privilege-level == 'priv' }} - with: - # if there is more than 1 go-version, we would need to account for that here. - name: binary - path: stacker - if-no-files-found: error - name: Show disk usage before running the tests if: always() uses: ./.github/actions/show-disk-usage @@ -107,6 +99,14 @@ jobs: uses: ./.github/actions/show-disk-usage - name: Upload code coverage uses: codecov/codecov-action@v3 + - name: Upload artifacts + uses: actions/upload-artifact@v3 + if: ${{ matrix.privilege-level == 'priv' }} + with: + # if there is more than 1 go-version, we would need to account for that here. + name: binary + path: stacker + if-no-files-found: error - uses: actions/cache@v3 id: restore-build with: diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 5327e531..71b8260f 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -91,6 +91,13 @@ jobs: REGISTRY_URL: localhost:5000 ZOT_HOST: localhost ZOT_PORT: 8080 + - name: Show disk usage after running the tests + if: always() + uses: ./.github/actions/show-disk-usage + - name: Upload code coverage + uses: codecov/codecov-action@v3 + with: + files: coverage-${{ matrix.privilege-level}}.txt - name: Upload artifacts uses: actions/upload-artifact@v3 if: ${{ matrix.privilege-level == 'priv' }} @@ -99,13 +106,6 @@ jobs: name: binary-cov path: stacker if-no-files-found: error - - name: Show disk usage after running the tests - if: always() - uses: ./.github/actions/show-disk-usage - - name: Upload code coverage - uses: codecov/codecov-action@v3 - with: - files: coverage-${{ matrix.privilege-level}}.txt - uses: actions/cache@v3 id: restore-build with: