Files
home-automation-backend/.github/workflows/short-tests.yml
Tianyu Liu cbdc1295f2
Some checks failed
Run short tests / run-tests (push) Failing after 1m11s
Modify coverage upload
2025-07-15 17:37:47 +02:00

29 lines
701 B
YAML

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