-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #675 from joaopapereira/auto-bump-go
Automatic bump of go version in the go.mod file
- Loading branch information
Showing
7 changed files
with
56 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,45 +11,34 @@ jobs: | |
name: Test GH - Linux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
path: src/github.com/${{ github.repository }} | ||
go-version-file: go.mod | ||
- name: Run Tests | ||
run: | | ||
set -e -x | ||
export GOPATH=$(echo `pwd`) | ||
export PATH="$PATH:$GOPATH/bin" | ||
cd src/github.com/${{ github.repository }} | ||
# deploy local registry and run tests | ||
./hack/test-all-local-registry.sh | ||
test-all-windows: | ||
name: Test GH - Windows | ||
runs-on: windows-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
path: src/github.com/${{ github.repository }} | ||
go-version-file: go.mod | ||
- name: Install dependencies | ||
run: | | ||
bash -c ' | ||
set -e -x | ||
export GOPATH=$(echo `pwd`) | ||
export PATH="$GOPATH/bin:$PATH" | ||
go install github.com/sigstore/cosign/cmd/[email protected] | ||
alias cosign=cosign.exe | ||
|
@@ -59,10 +48,6 @@ jobs: | |
bash -c ' | ||
set -e -x | ||
export GOPATH=$(echo `pwd`) | ||
export PATH="$GOPATH/bin:$PATH" | ||
cd src/github.com/${{ github.repository }} | ||
export IMGPKG_BINARY_EXT=".exe" | ||
./hack/build.sh | ||
' | ||
|
@@ -75,10 +60,6 @@ jobs: | |
docker stop registry | ||
} | ||
export GOPATH=$(echo `pwd`) | ||
export PATH="$GOPATH/bin:$PATH" | ||
cd src/github.com/${{ github.repository }} | ||
export IMGPKG_E2E_IMAGE="localhost:5000/github-action-test-relocation-$GITHUB_RUN_ID" | ||
export IMGPKG_E2E_RELOCATION_REPO="localhost:5000/github-action-imgpkg-test-$GITHUB_RUN_ID" | ||
|
@@ -97,10 +78,6 @@ jobs: | |
bash -c ' | ||
set -e -x | ||
export GOPATH=$(echo `pwd`) | ||
export PATH="$GOPATH/bin:$PATH" | ||
cd src/github.com/${{ github.repository }} | ||
export IMGPKG_E2E_IMAGE="ttl.sh/github-action-test-relocation-$GITHUB_RUN_ID" | ||
export IMGPKG_E2E_RELOCATION_REPO="ttl.sh/github-action-imgpkg-test-$GITHUB_RUN_ID" | ||
export IMGPKG_BINARY="$PWD/imgpkg.exe" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: go-updater | ||
|
||
on: | ||
schedule: | ||
- cron: '0 12 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-go: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
check-latest: true | ||
- name: Update Go | ||
run: go get go | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.CARVEL_BOT_ACCESS_TOKEN }} | ||
committer: Carvel Bot <[email protected]> | ||
author: Carvel Bot <[email protected]> | ||
commit-message: | | ||
Bump go | ||
Signed-off-by: Carvel Bot <[email protected]> | ||
title: Bump go | ||
delete-branch: true | ||
body: | | ||
Auto-generated by https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | ||
Signed-off-by: Carvel Bot <[email protected]> | ||
base: develop | ||
branch: bump-go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters