19 Commits

Author SHA1 Message Date
7818a3fb44 Revert coverage
Some checks failed
Run short tests / run-tests (push) Failing after 44s
Run nightly tests / nightly-tests (push) Has been cancelled
2025-07-15 22:32:24 +02:00
295c8f1589 see svg
Some checks failed
Run short tests / run-tests (push) Failing after 1m9s
Run nightly tests / nightly-tests (push) Successful in 1m24s
2025-07-15 17:48:35 +02:00
739497a853 try skip ci [skip ci] 2025-07-15 17:47:15 +02:00
8da79514b8 Add badge readme
All checks were successful
Run short tests / run-tests (push) Successful in 1m5s
Run nightly tests / nightly-tests (push) Successful in 1m23s
2025-07-15 17:44:39 +02:00
872c7b356f Merge pull request 'feature/improve_test_automation' (#2) from feature/improve_test_automation into main
All checks were successful
Run short tests / run-tests (push) Successful in 1m5s
Run nightly tests / nightly-tests (push) Successful in 1m37s
Reviewed-on: #2
2025-07-15 17:42:21 +02:00
6fab12e7bd upload artifacts v3
All checks were successful
Run short tests / run-tests (push) Successful in 1m38s
Run short tests / run-tests (pull_request) Successful in 1m6s
2025-07-15 17:39:36 +02:00
cbdc1295f2 Modify coverage upload
Some checks failed
Run short tests / run-tests (push) Failing after 1m11s
2025-07-15 17:37:47 +02:00
a7ae5d465c try to upload coverage out
Some checks failed
Run short tests / run-tests (push) Failing after 2m18s
2025-07-15 17:33:27 +02:00
8df89d3478 schedule looks good now, run at 20 utc, so 21 cest.
All checks were successful
Run short tests / run-tests (push) Successful in 1m15s
Run nightly tests / nightly-tests (push) Successful in 1m50s
2025-05-21 14:51:24 +02:00
f97841b079 print working see with checkout
All checks were successful
Run short tests / run-tests (push) Successful in 1m14s
Run nightly tests / nightly-tests (push) Successful in 1m40s
2025-05-21 14:41:44 +02:00
17d2f4d1f5 test cron
All checks were successful
Run short tests / run-tests (push) Successful in 1m15s
Run nightly tests / test-cron-job (push) Successful in 30s
2025-05-21 14:38:05 +02:00
1aa6c7dac4 test cron at 1430
All checks were successful
Run short tests / run-tests (push) Successful in 1m14s
Run nightly tests / run-tests (push) Successful in 1m41s
2025-05-21 14:24:22 +02:00
da5bf43197 add push to main
All checks were successful
Run short tests / run-tests (push) Successful in 1m14s
Run nightly tests / run-tests (push) Successful in 1m40s
2025-05-21 10:52:29 +02:00
0d803f4b23 add nightly cron at 0am
All checks were successful
Run short tests / run-tests (push) Successful in 1m38s
2025-05-20 15:22:30 +02:00
fc4e0217b2 check if lable works
All checks were successful
Run short tests / run-tests (push) Successful in 1m13s
Run nightly tests / run-tests (push) Successful in 1m36s
2025-05-20 15:20:07 +02:00
d4db20be16 add nightly test template
Some checks failed
Run nightly tests / run-tests (push) Failing after 13s
Run short tests / run-tests (push) Has been cancelled
2025-05-20 15:19:16 +02:00
1041016210 Revert "change runner to linux"
Some checks failed
Run short tests / run-tests (push) Has been cancelled
This reverts commit 99ed529600.
2025-05-20 15:18:18 +02:00
99ed529600 change runner to linux
Some checks failed
Run short tests / run-tests (push) Failing after 12s
2025-05-20 15:16:58 +02:00
f02bb1e6fb Merge pull request 'feature/refactoring' (#1) from feature/refactoring into master
All checks were successful
Run short tests / run-tests (push) Successful in 1m58s
Reviewed-on: https://code.jamesvillage.dev/tliu93/home-automation-backend/pulls/1
2025-05-19 22:28:40 +02:00
3 changed files with 29 additions and 4 deletions

22
.github/workflows/nightly.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Run nightly tests
on:
schedule:
- cron: '0 20 * * *' # Every day at 20:00 UTC
push:
branches:
- main
jobs:
nightly-tests:
runs-on: [ubuntu-latest, cloud]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Test
working-directory: ./src
run: go test -v --short ./...

View File

@@ -13,8 +13,9 @@ 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

View File

@@ -1 +1,3 @@
Port 8881
# Home Automation Backend
![CI-Short](https://code.wanderingbadger.dev/tliu93/home-automation-backend.git/actions/workflows/short-tests.yml/badge.svg)