Files
home-automation-backend/.github/workflows/nightly.yml
Tianyu Liu 17d2f4d1f5
All checks were successful
Run short tests / run-tests (push) Successful in 1m15s
Run nightly tests / test-cron-job (push) Successful in 30s
test cron
2025-05-21 14:38:05 +02:00

21 lines
558 B
YAML

name: Run nightly tests
on:
schedule:
- cron: '*/10 * * * *' # Every day at midnight UTC
push:
branches:
- main
jobs:
test-cron-job:
runs-on: [ubuntu-latest, cloud]
steps:
- name: Print
run : |
echo "Running nightly tests"
echo "Current date and time: $(date)"
echo "Running on $(uname -a)"
echo "Running on $(cat /etc/os-release)"
echo "Running on $(cat /proc/cpuinfo | grep 'model name' | uniq)"
echo "Running on $(cat /proc/meminfo | grep 'MemTotal')"