33 Commits

Author SHA1 Message Date
959bd79d1a see if i get token correctly to config
All checks were successful
Run nightly tests / build (push) Successful in 34s
Run nightly tests / nightly-tests-play (push) Successful in 15s
Run short tests / run-tests (push) Successful in 1m17s
2025-05-24 13:50:28 +02:00
1290bdb0fa token not printed yet
All checks were successful
Run nightly tests / build (push) Successful in 37s
Run nightly tests / nightly-tests-play (push) Successful in 37s
Run short tests / run-tests (push) Successful in 1m19s
2025-05-24 13:06:35 +02:00
23df98f586 try if token is readable
All checks were successful
Run nightly tests / build (push) Successful in 1m25s
Run nightly tests / nightly-tests-play (push) Successful in 17s
Run short tests / run-tests (push) Successful in 1m57s
2025-05-24 13:04:02 +02:00
6d4ad23abb Use tee
Some checks failed
Run nightly tests / build (push) Successful in 1m13s
Run short tests / run-tests (push) Successful in 1m41s
Run nightly tests / nightly-tests-play (push) Failing after 34s
2025-05-23 12:30:03 +02:00
8205232db3 I dont understand why hosts not take effect
Some checks failed
Run nightly tests / build (push) Successful in 1m16s
Run short tests / run-tests (push) Successful in 1m40s
Run nightly tests / nightly-tests-play (push) Failing after 33s
2025-05-23 12:27:47 +02:00
c1d56f8ee0 echo needs -e to pass linefeed
Some checks failed
Run short tests / run-tests (push) Successful in 1m17s
Run nightly tests / build (push) Successful in 1m15s
Run nightly tests / nightly-tests-play (push) Failing after 45s
2025-05-23 12:24:54 +02:00
cf5a47ed4a try if host format is correct or not
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m16s
Run nightly tests / nightly-tests-play (push) Failing after 46s
2025-05-23 12:21:35 +02:00
63cec9b9d8 host not found either, install it and try
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m17s
Run nightly tests / nightly-tests-play (push) Failing after 33s
2025-05-23 12:14:58 +02:00
909b45b51e ping not permitted, use host instead
Some checks failed
Run short tests / run-tests (push) Successful in 1m17s
Run nightly tests / build (push) Successful in 1m41s
Run nightly tests / nightly-tests-play (push) Failing after 26s
2025-05-23 12:12:20 +02:00
2d529b1f1c doesnt have ping yet, needs to install
Some checks failed
Run short tests / run-tests (push) Successful in 1m17s
Run nightly tests / build (push) Successful in 1m40s
Run nightly tests / nightly-tests-play (push) Failing after 31s
2025-05-23 12:08:21 +02:00
f3dfae6e12 let's check the ip returned by new hosts
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m38s
Run nightly tests / nightly-tests-play (push) Failing after 41s
2025-05-23 12:05:43 +02:00
6900be6904 while loop hangs the flow, will use background
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m37s
Run nightly tests / nightly-tests-play (push) Failing after 41s
2025-05-23 12:02:39 +02:00
ab0be6ea45 workflow run hangs, modify version
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m39s
Run nightly tests / nightly-tests-play (push) Has been cancelled
2025-05-23 11:59:21 +02:00
daaf79e721 Looks like need to use netcat-openbsd
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m17s
Run nightly tests / nightly-tests-play (push) Has been cancelled
2025-05-23 11:55:25 +02:00
482f23912c nc not there, install first
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m15s
Run nightly tests / nightly-tests-play (push) Failing after 38s
2025-05-23 11:52:02 +02:00
a8ac1e359d See if modifying host is working
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m39s
Run nightly tests / nightly-tests-play (push) Failing after 15s
2025-05-23 11:49:21 +02:00
8438944f8a Needs to +x permission of executable
All checks were successful
Run nightly tests / build (push) Successful in 1m14s
Run short tests / run-tests (push) Successful in 1m36s
Run nightly tests / nightly-tests-play (push) Successful in 17s
Run nightly tests / nightly-tests (push) Successful in 37s
2025-05-23 11:43:01 +02:00
175e3e36a7 Upload with use a nother version of github workspace
Some checks failed
Run short tests / run-tests (push) Successful in 1m18s
Run nightly tests / build (push) Successful in 1m16s
Run nightly tests / nightly-tests-play (push) Failing after 32s
Run nightly tests / nightly-tests (push) Successful in 34s
2025-05-23 11:40:23 +02:00
05381bde3a Test with help message
Some checks failed
Run nightly tests / build (push) Successful in 1m10s
Run short tests / run-tests (push) Successful in 1m39s
Run nightly tests / nightly-tests-play (push) Failing after 16s
Run nightly tests / nightly-tests (push) Failing after 36s
2025-05-23 11:38:31 +02:00
ab53a7dc71 Check workspace location
All checks were successful
Run short tests / run-tests (push) Successful in 1m19s
Run nightly tests / build (push) Successful in 1m19s
Run nightly tests / nightly-tests-play (push) Successful in 18s
Run nightly tests / nightly-tests (push) Successful in 34s
2025-05-23 11:35:49 +02:00
d9264885ab Change location
Some checks failed
Run short tests / run-tests (push) Successful in 1m15s
Run nightly tests / build (push) Successful in 1m37s
Run nightly tests / nightly-tests-play (push) Failing after 37s
Run nightly tests / nightly-tests (push) Successful in 25s
2025-05-23 11:33:04 +02:00
cb3f1ee9fd Test download artifacts and print message
Some checks failed
Run nightly tests / build (push) Successful in 1m41s
Run short tests / run-tests (push) Successful in 1m33s
Run nightly tests / nightly-tests-play (push) Failing after 36s
Run nightly tests / nightly-tests (push) Successful in 40s
2025-05-23 11:29:44 +02:00
6c4be53f4b Add second step
All checks were successful
Run short tests / run-tests (push) Successful in 1m11s
Run nightly tests / build (push) Successful in 1m45s
Run nightly tests / nightly-tests (push) Successful in 42s
2025-05-21 20:30:55 +02:00
85e4863f12 try another one
All checks were successful
Run short tests / run-tests (push) Successful in 1m16s
Run nightly tests / build (push) Successful in 1m39s
2025-05-21 20:28:03 +02:00
a0c5a92bb9 looks like path is not correct
All checks were successful
Run short tests / run-tests (push) Successful in 1m22s
Run nightly tests / build (push) Successful in 1m41s
2025-05-21 20:12:53 +02:00
439f7e64bd paths should be path
All checks were successful
Run short tests / run-tests (push) Successful in 1m23s
Run nightly tests / build (push) Successful in 1m34s
2025-05-21 20:09:15 +02:00
61a544ca29 Lets see if we can upload artifacts
Some checks failed
Run short tests / run-tests (push) Successful in 1m21s
Run nightly tests / build (push) Failing after 1m48s
2025-05-21 20:07:09 +02:00
5348d2a8f4 Add ls lr to see where is the artifactory
All checks were successful
Run short tests / run-tests (push) Successful in 1m23s
Run nightly tests / build (push) Successful in 1m27s
2025-05-21 20:04:17 +02:00
14e589f2ee add working directory should work
All checks were successful
Run short tests / run-tests (push) Successful in 1m21s
Run nightly tests / build (push) Successful in 1m30s
2025-05-21 20:01:40 +02:00
e1a9f24d2b pwd
Some checks failed
Run nightly tests / build (push) Successful in 35s
Run short tests / run-tests (push) Has been cancelled
2025-05-21 20:01:05 +02:00
69c6d2fd3f try build
Some checks failed
Run nightly tests / build (push) Failing after 35s
Run short tests / run-tests (push) Successful in 1m23s
2025-05-21 19:59:11 +02:00
f288b32092 will try
Some checks failed
Run nightly tests / nightly-tests (push) Failing after 38s
Run short tests / run-tests (push) Successful in 1m22s
2025-05-21 19:57:33 +02:00
06606ca06c try build
Some checks failed
Run short tests / run-tests (push) Has been cancelled
2025-05-21 19:56:54 +02:00

View File

@@ -1,22 +1,70 @@
name: Run nightly tests
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * *' # Every day at 20:00 UTC
push:
branches:
- main
jobs:
nightly-tests:
build:
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: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.23'
# - name: build
# working-directory: ./src
# run: |
# go build
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# path: ${{ github.workspace }}/src/home-automation-backend
# name: home-automation-backend_build_${{ github.run_number }}
# retention-days: 1
- name: Test
working-directory: ./src
run: go test -v --short ./...
nightly-tests-play:
runs-on: [ubuntu-latest, cloud]
needs: build
steps:
- name: Put token into config file
run: |
cat <<EOF > ${GITHUB_WORKSPACE}/config.json
{
"token": "${{ secrets.TEST_TOKEN }}"
}
EOF
- name: print config file
run: cat ${GITHUB_WORKSPACE}/config.json
# - name: Download artifacts
# uses: actions/download-artifact@v3
# with:
# name: home-automation-backend_build_${{ github.run_number }}
# - name: Print helping message
# run: |
# chmod +x ${GITHUB_WORKSPACE}/home-automation-backend
# ${GITHUB_WORKSPACE}/home-automation-backend help
# nightly-tests:
# runs-on: [ubuntu-latest, cloud]
# needs: build
# steps:
# - uses: actions/checkout@v4
# - name: Download artifacts
# uses: actions/download-artifact@v3
# with:
# name: home-automation-backend_build_${{ github.run_number }}
# - name: Check files
# run: ls -lR
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.23'
# - name: build
# run: go build
# - name: Run nightly tests
# working-directory: ./tests
# run: go test -v --short ./...