Compare commits
33 Commits
main
...
feature/ad
| Author | SHA1 | Date | |
|---|---|---|---|
| 959bd79d1a | |||
| 1290bdb0fa | |||
| 23df98f586 | |||
| 6d4ad23abb | |||
| 8205232db3 | |||
| c1d56f8ee0 | |||
| cf5a47ed4a | |||
| 63cec9b9d8 | |||
| 909b45b51e | |||
| 2d529b1f1c | |||
| f3dfae6e12 | |||
| 6900be6904 | |||
| ab0be6ea45 | |||
| daaf79e721 | |||
| 482f23912c | |||
| a8ac1e359d | |||
| 8438944f8a | |||
| 175e3e36a7 | |||
| 05381bde3a | |||
| ab53a7dc71 | |||
| d9264885ab | |||
| cb3f1ee9fd | |||
| 6c4be53f4b | |||
| 85e4863f12 | |||
| a0c5a92bb9 | |||
| 439f7e64bd | |||
| 61a544ca29 | |||
| 5348d2a8f4 | |||
| 14e589f2ee | |||
| e1a9f24d2b | |||
| 69c6d2fd3f | |||
| f288b32092 | |||
| 06606ca06c |
68
.github/workflows/nightly.yml
vendored
68
.github/workflows/nightly.yml
vendored
@@ -1,22 +1,70 @@
|
|||||||
name: Run nightly tests
|
name: Run nightly tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 20 * * *' # Every day at 20:00 UTC
|
- cron: '0 20 * * *' # Every day at 20:00 UTC
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
jobs:
|
jobs:
|
||||||
nightly-tests:
|
build:
|
||||||
runs-on: [ubuntu-latest, cloud]
|
runs-on: [ubuntu-latest, cloud]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
# - name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
# uses: actions/setup-go@v4
|
||||||
with:
|
# with:
|
||||||
go-version: '1.23'
|
# 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
|
nightly-tests-play:
|
||||||
working-directory: ./src
|
runs-on: [ubuntu-latest, cloud]
|
||||||
run: go test -v --short ./...
|
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 ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user