Skip to content

Commit

Permalink
Merge pull request #10 from riweston/manage-deps
Browse files Browse the repository at this point in the history
ci: Add actions to bump go version
  • Loading branch information
riweston authored Jun 11, 2022
2 parents 5fba670 + b26da48 commit 6da513e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
with:
fetch-depth: 0
ssh-key: "${{ secrets.DEPLOY_KEY }}"
- uses: arnested/go-version-action@v1
id: go-version
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: ${{ steps.go-version.outputs.latest }}
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: arnested/go-version-action@v1
id: go-version
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: ${{ steps.go-version.outputs.latest }}
- name: Build a test release
run: |
go build .
11 changes: 9 additions & 2 deletions .github/workflows/ci.lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: arnested/go-version-action@v1
id: go-version
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: ${{ steps.go-version.outputs.latest }}
check-latest: true
- name: Checkout code
uses: actions/checkout@v2
- name: Test
Expand Down

0 comments on commit 6da513e

Please sign in to comment.