test cron
This commit is contained in:
22
.github/workflows/nightly.yml
vendored
22
.github/workflows/nightly.yml
vendored
@@ -2,21 +2,19 @@ name: Run nightly tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 14 * * *' # Every day at midnight UTC
|
- cron: '*/10 * * * *' # Every day at midnight UTC
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
run-tests:
|
test-cron-job:
|
||||||
runs-on: [ubuntu-latest, cloud]
|
runs-on: [ubuntu-latest, cloud]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Print
|
||||||
|
run : |
|
||||||
- name: Set up Go
|
echo "Running nightly tests"
|
||||||
uses: actions/setup-go@v4
|
echo "Current date and time: $(date)"
|
||||||
with:
|
echo "Running on $(uname -a)"
|
||||||
go-version: '1.23'
|
echo "Running on $(cat /etc/os-release)"
|
||||||
|
echo "Running on $(cat /proc/cpuinfo | grep 'model name' | uniq)"
|
||||||
- name: Test
|
echo "Running on $(cat /proc/meminfo | grep 'MemTotal')"
|
||||||
working-directory: ./src
|
|
||||||
run: go test -v --short ./...
|
|
||||||
|
|||||||
Reference in New Issue
Block a user