Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shiroyk committed Oct 18, 2024
1 parent 17dc9c9 commit fcc6008
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,25 @@ permissions:

jobs:
# linter
# lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: actions/setup-go@v3
# with:
# go-version: 1.19.x
# - uses: golangci/golangci-lint-action@v3
# with:
# version: latest
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: golangci/golangci-lint-action@v6
with:
version: v1.60

# tests
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: stable
- run: make tests

# release
Expand All @@ -42,12 +40,12 @@ jobs:
needs: [test]
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down

0 comments on commit fcc6008

Please sign in to comment.