Skip to content

Commit

Permalink
Merge pull request #117 from k1LoW/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
k1LoW authored Dec 12, 2024
2 parents ce76171 + 2edb1d0 commit b02bb83
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Run lint
uses: reviewdog/action-golangci-lint@v2
with:
fail_on_error: true
go_version_file: go.mod
golangci_lint_flags: --timeout=5m
cache: false

- name: Run tests
run: make ci
Expand All @@ -42,10 +47,10 @@ jobs:
DEBUG: true
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
Expand Down Expand Up @@ -88,7 +93,7 @@ jobs:
DEBUG: true
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up gh-setup
uses: k1LoW/gh-setup@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tagpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
Expand All @@ -39,7 +39,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -50,7 +50,7 @@ jobs:
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
Expand All @@ -66,7 +66,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 1 addition & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- go mod download
Expand Down Expand Up @@ -50,18 +51,15 @@ archives:
- CREDITS
- README.md
- CHANGELOG.md
rlcp: true
-
id: gh-setup-binary
name_template: '{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: binary
rlcp: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}-next"
changelog:
skip: true
nfpms:
- id: gh-setup-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
Expand Down

0 comments on commit b02bb83

Please sign in to comment.