collectors: do not init htlc monitor when htlc monitoring is disabled #84
Workflow file for this run
This file contains 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.21.6 | |
jobs: | |
######################## | |
# lint and build code | |
######################## | |
lint: | |
name: lint and build code | |
runs-on: ubuntu-latest | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v2 | |
- name: go cache | |
uses: actions/cache@v1 | |
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@v2 | |
with: | |
go-version: '${{ env.GO_VERSION }}' | |
- name: lint | |
run: make lint | |
- name: build | |
run: make build |