Skip to content

Commit

Permalink
actions: update to newer actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bengadbois committed Jun 18, 2024
1 parent 1eac89c commit 7687ecc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.18.2
- run: go build -v ./...
- run: go test -v ./...
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: stable
- run: go build -v ./...
- run: go test -v ./...
8 changes: 5 additions & 3 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
with:
go-version: 1.18.2
- uses: actions/checkout@v1
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: stable
- name: calculate coverage
run: go test -v -coverprofile=profile.cov ./...
- name: send coverage
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@ on:
push:
branches:
- master
- main
pull_request:

jobs:
golangci:
strategy:
matrix:
go-version: [1.18.2]
os: [macos-latest, ubuntu-latest]
go: [stable]
os: [ubuntu-latest, macos-latest]
name: lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v6
with:
version: v1.41.1
version: v1.58
args: --disable-all -E errcheck -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode -E structcheck -E varcheck -E typecheck -E staticcheck -E gosimple ./...
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ on:
push:
branches:
- master
- main
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.18.2
- uses: goreleaser/goreleaser-action@v2
go-version: stable
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
Expand Down

0 comments on commit 7687ecc

Please sign in to comment.