Compare commits
33 Commits
872c7b356f
...
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
|
||||
|
||||
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 ./...
|
||||
|
||||
14
.github/workflows/short-tests.yml
vendored
14
.github/workflows/short-tests.yml
vendored
@@ -13,16 +13,8 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.24'
|
||||
go-version: '1.23'
|
||||
|
||||
- name: Run short tests with coverage
|
||||
- name: Test
|
||||
working-directory: ./src
|
||||
run: | # TODO: at this moment only Home Assistant component is tested
|
||||
go test -v --short ./components/homeassistant/... -cover -coverprofile=cover.out
|
||||
- name: Upload coverage report
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: coverage-report_build_${{ github.run_number }}
|
||||
path: ${{ github.workspace }}/src/cover.out
|
||||
retention-days: 1
|
||||
|
||||
run: go test -v --short ./...
|
||||
|
||||
Reference in New Issue
Block a user