ci: improve CI environment and reporting for Go tests

- Add gpg to the list of installed packages for testing
- Specify Codecov upload flags based on Go version

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2025-11-28 21:50:25 +08:00
parent 732c7194bd
commit a934a831d2
No known key found for this signature in database

View File

@ -42,7 +42,7 @@ jobs:
- name: setup sshd server
run: |
apk add git make curl perl bash build-base zlib-dev ucl-dev sudo
apk add git make curl perl bash build-base zlib-dev ucl-dev sudo gpg
make ssh-server
- name: testing
@ -51,3 +51,5 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
flags: go-${{ matrix.go-version }}