Skip to content

Commit

Permalink
lint and CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJoiner committed Apr 29, 2024
1 parent 343f179 commit ed3a65f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ updates:
directory: "/"
schedule:
interval: "weekly"
groups:
go-mod:
patterns:
- "*"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,5 @@ jobs:
- name: modVerify
run: go mod verify

- name: Run Tests with go testsum
run: gotestsum --format pkgname --jsonfile test.json

- name: Annotate tests
if: always()
uses: guyarb/golang-test-annotations@v0.7.0
with:
test-results: test.json
- name: Run Tests
run: go test -v ./...
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22

- name: Checkout code
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v5
with:
version: latest
only-new-issues: false
Expand Down
1 change: 0 additions & 1 deletion mnemonic.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func FromHex(data string) ([]string, error) {
// The length in bits of the byte slice must be a multiple of 32.
func FromBytes(data []byte) ([]string, error) {
return FromBigIntFixed(big.NewInt(0).SetBytes(data), len(data)*bitsPerByte)

}

// FromUint32WithObfuscation behaves the same as FromUint, but the provided data is obfuscated first.
Expand Down

0 comments on commit ed3a65f

Please sign in to comment.