Skip to content

Commit

Permalink
Upgraded linter, github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bogcon committed Mar 26, 2024
1 parent 96ecd75 commit 0736c80
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
timeout-minutes: 5
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
go-version: [1.21.x, 1.22.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

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

- name: Load cached dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
Expand All @@ -44,8 +44,9 @@ jobs:
run: make clean cover

- name: Upload coverage to coveralls.io
if: matrix.platform == 'ubuntu-latest' && matrix.go-version == '1.21.x'
uses: shogo82148/actions-goveralls@v1
if: matrix.platform == 'ubuntu-latest' && matrix.go-version == '1.22.x'
uses: coverallsapp/github-action@v2
with:
path-to-profile: cover.out
flag-name: ${{ runner.os }}/Go-${{ matrix.go-version }}
file: cover.out
flag-name: ${{ runner.os }}-go-${{ matrix.go-version }}
fail-on-error: false
2 changes: 1 addition & 1 deletion .golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
tests: true

linters:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LINTER_VERSION=v1.55.2
LINTER_VERSION=v1.57.1
LINTER=./bin/golangci-lint
ifeq ($(OS),Windows_NT)
LINTER=./bin/golangci-lint.exe
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ See go doc reference for more details and examples.
### Installation

```shell
$ go get -u github.com/actforgood/xrand
$ go get github.com/actforgood/xrand
```


Expand Down

0 comments on commit 0736c80

Please sign in to comment.