Add watchtower client number of backup metrics #134
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| pull_request: | |
| branches: | |
| - "*" | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| # go needs absolute directories, using the $HOME variable doesn't work here. | |
| GOCACHE: /home/runner/work/go/pkg/build | |
| GOPATH: /home/runner/work/go | |
| GO_VERSION: 1.23.6 | |
| jobs: | |
| ######################## | |
| # lint and build code | |
| ######################## | |
| lint: | |
| name: lint and build code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout | |
| uses: actions/checkout@v4 | |
| - name: go cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /home/runner/work/go | |
| key: lndmon-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| lndmon-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} | |
| lndmon-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}- | |
| lndmon-${{ runner.os }}-go-${{ env.GO_VERSION }}- | |
| lndmon-${{ runner.os }}-go- | |
| - name: setup go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '${{ env.GO_VERSION }}' | |
| - name: lint | |
| run: make lint | |
| - name: build | |
| run: make build |