Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use actions/upload-artifact@v4 #749

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
run: go test -coverprofile=profile.out -covermode=atomic -v -coverpkg=./... ./...

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-test-${{ matrix.flags || 'default' }}
path: |
profile.out
profile_race.out
Expand Down Expand Up @@ -78,9 +78,9 @@ jobs:
run: go test ./e2e -coverprofile=profile_e2e.out -covermode=atomic -tags=e2e_new -timeout=3m -coverpkg=./...

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-e2e-${{ matrix.flags || 'default' }}
path: |
profile_e2e.out
profile_e2e_race.out
Expand All @@ -97,14 +97,20 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage
path: artifacts
pattern: coverage-*
merge-multiple: true

- name: Send coverage
uses: codecov/codecov-action@v3
with:
files: profile.out, profile_race.out, profile_e2e.out, profile_e2e_race.out,
files: |
artifacts/profile.out
artifacts/profile_race.out
artifacts/profile_e2e.out
artifacts/profile_e2e_race.out

lint:
runs-on: ubuntu-latest
Expand Down