Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
byo committed Dec 9, 2024
1 parent 9f2b3a5 commit 61bb47c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 61bb47c

Please sign in to comment.