diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 122835bdfc..2ee9cc5ee1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ env: GOPATH: /home/runner/work/go GO111MODULE: on - GO_VERSION: 1.19.x + GO_VERSION: 1.22.x BITCOIND_VERSION: '22.0' BITCOIND_IMAGE: 'lightninglabs/bitcoin-core' @@ -31,10 +31,10 @@ jobs: runs-on: ubuntu-latest steps: - name: git checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: setup go ${{ env.GO_VERSION }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: '${{ env.GO_VERSION }}' @@ -69,10 +69,10 @@ jobs: docker rm $CONTAINER_ID - name: git checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: go cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: /home/runner/work/go key: btcwallet-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} @@ -83,7 +83,7 @@ jobs: btcwallet-${{ runner.os }}-go- - name: setup go ${{ env.GO_VERSION }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: '${{ env.GO_VERSION }}' diff --git a/.golangci.yml b/.golangci.yml index b20f0d794f..2df5322ebd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -36,6 +36,9 @@ linters: # - makezero issues: + # Only check issues in the new code. + new-from-rev: master + exclude-rules: # Exclude gosec from running for tests so that tests with weak randomness # (math/rand) will pass the linter.