Skip to content

Commit

Permalink
workflows: update actions versions and linter checks
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Aug 21, 2024
1 parent 641abcd commit adeb005
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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 }}'

Expand Down Expand Up @@ -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') }}
Expand All @@ -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 }}'

Expand Down
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit adeb005

Please sign in to comment.