Skip to content

Commit

Permalink
Merge pull request #15 from MichaelEischer/update-ci
Browse files Browse the repository at this point in the history
CI: Update golangci-lint and github actions
  • Loading branch information
MichaelEischer authored Nov 11, 2023
2 parents c4ad488 + 4a624e8 commit 6abcbbb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ on:
pull_request:

env:
latest_go: "1.19.x"
latest_go: "1.21.x"

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ env.latest_go }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.latest_go }}

- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49
version: v1.55
args: --verbose --timeout 5m

- name: Check go.mod/go.sum
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
strategy:
matrix:
include:
- go: 1.19.x
- go: 1.21.x
- go: 1.12.x

name: Build Go ${{ matrix.go }}
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build
run: |
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func githubIDs(urls []*url.URL, e *Entry) {
}
}

func readEntries(dir string, versions []Release) (entries map[string][]Entry) {
func readEntries(versions []Release) (entries map[string][]Entry) {
entries = make(map[string][]Entry)

for _, ver := range versions {
Expand Down Expand Up @@ -542,7 +542,7 @@ func main() {
}
}

all := readEntries(opts.InputDir, releases)
all := readEntries(releases)
for _, ver := range releases {
if len(all[ver.Version]) == 0 {
continue
Expand Down

0 comments on commit 6abcbbb

Please sign in to comment.