Skip to content

Commit

Permalink
update github actions && go version
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Jun 23, 2024
1 parent 27866d6 commit baf4ad2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/wf-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: 1.22
- id: github_token
uses: tibdex/github-app-token@v1
uses: actions/create-github-app-token@v1
with:
app_id: 364898
private_key: ${{ secrets.ARTHUR1_BOT_PRIVATE_KEY }}
- uses: goreleaser/goreleaser-action@v4
app-id: 364898
private-key: ${{ secrets.ARTHUR1_BOT_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "otlc,homebrew-tap"
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/wf-test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v3
go-version: 1.22
- uses: golangci/golangci-lint-action@v6
with:
args: --timeout=10m
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: 1.22
- run: |
go install github.com/mfridman/tparse@latest
- run: |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Arthur1/otlc

go 1.20
go 1.22.4

require (
github.com/spf13/cobra v1.7.0
Expand Down

0 comments on commit baf4ad2

Please sign in to comment.