From a7ae5d465c739de2d42b1fd37afa982e9cc716ed Mon Sep 17 00:00:00 2001 From: Tianyu Liu Date: Tue, 15 Jul 2025 17:33:27 +0200 Subject: [PATCH] try to upload coverage out --- .github/workflows/short-tests.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/short-tests.yml b/.github/workflows/short-tests.yml index ae0042f..0266fca 100644 --- a/.github/workflows/short-tests.yml +++ b/.github/workflows/short-tests.yml @@ -13,8 +13,16 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.23' + go-version: '1.24' - - name: Test + - name: Run short tests with coverage working-directory: ./src - run: go test -v --short ./... + run: | # TODO: at this moment only Home Assistant component is tested + go test -v --short ./components/homeassistant/... -cover -coverprofile=cover.out + - name: Upload coverage report + uses: actions/upload-artifact@v4 + with: + name: coverage-report + path: ./src/cover.out + retention-days: 1 +