feat: use shoutrrr for notifcations (apprise deprecated) #1722
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go Unit Tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "backend/**" | |
| - "cli/**" | |
| - "types/**" | |
| - "go.work" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "backend/**" | |
| - "cli/**" | |
| - "types/**" | |
| - "go.work" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-backend: | |
| name: Backend Tests | |
| runs-on: depot-ubuntu-24.04-8 | |
| timeout-minutes: 30 | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Depot CLI | |
| uses: depot/setup-action@v1 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: backend/go.mod | |
| cache: true | |
| cache-dependency-path: backend/go.sum | |
| - name: Install GCC | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc | |
| - name: Download modules | |
| run: go mod download | |
| - name: Run unit tests | |
| env: | |
| CGO_ENABLED: "1" | |
| run: go test -tags=exclude_frontend ./... -race -coverprofile=coverage.out -covermode=atomic -v | |
| - name: Upload coverage artifact | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: backend-coverage | |
| path: backend/coverage.out | |
| test-cli: | |
| name: CLI Tests | |
| runs-on: depot-ubuntu-24.04-8 | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: cli | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: cli/go.mod | |
| cache: true | |
| cache-dependency-path: cli/go.sum | |
| - name: Download modules | |
| run: go mod download | |
| - name: Run unit tests | |
| run: go test ./... -race -coverprofile=coverage.out -covermode=atomic -v | |
| - name: Upload coverage artifact | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: cli-coverage | |
| path: cli/coverage.out |