name: Run short tests on: push: pull_request: jobs: run-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: go-version: '1.24' - name: Run short tests with coverage working-directory: ./src 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_build_${{ github.run_number }} path: ${{ github.workspace }}/src/cover.out retention-days: 1