From 61bb47c89ed53492a1f2e898eb00efd90f22307d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20=C5=9Awi=C4=99cki?= Date: Mon, 9 Dec 2024 12:41:21 +0100 Subject: [PATCH] Fix github actions --- .github/workflows/images.yml | 4 ++-- .github/workflows/tests.yml | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index 971febf..a2dc74d 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -83,7 +83,7 @@ jobs: EOF - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: image_${{ matrix.app.name }} path: ${{ env.OUTPUTS_DIR }}/image @@ -97,7 +97,7 @@ jobs: images: ${{ steps.images.outputs.images }} steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: path: /tmp/outputs - run: ls /tmp/outputs || true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7980881..6564d67 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,19 @@ jobs: go-version: "1.23" - uses: actions/checkout@v3 - run: go vet ./... - - run: go test -v ${{ matrix.env.coverage && '-coverprofile=profile.cov' }} ./... + - run: | + set -x + + PREFIX="github.com/${GITHUB_REPOSITORY}" + + go test -v \ + ${{ matrix.env.coverage && '-coverprofile=profile.cov' }} \ + $( + go list ./... \ + | grep -v "${PREFIX}/cmd" \ + | grep -v "${PREFIX}/testvectors" \ + | grep -v "${PREFIX}/pkg/cinodefs/protobuf" \ + ) continue-on-error: ${{ matrix.env['continue-on-error'] }} - uses: shogo82148/actions-goveralls@v1 if: ${{ matrix.env.coverage }}