-
Notifications
You must be signed in to change notification settings - Fork 12
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 #12 from cpanato/updates
add dependabot config, ci job and general cleanup
- Loading branch information
Showing
6 changed files
with
95 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 10 |
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,55 @@ | ||
name: ci | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
test-ko-action: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | ||
with: | ||
go-version: '1.20' | ||
check-latest: 'true' | ||
|
||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
|
||
# Minimal publish | ||
- uses: ./ | ||
|
||
- run: ko publish --bare ./ | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
KO_DOCKER_REPO: ko.local | ||
|
||
- name: Install old release | ||
uses: ./ | ||
with: | ||
version: v0.8.0 | ||
|
||
- name: Check installed version | ||
run: ko version | grep 0.8.0 | ||
|
||
- name: Install from tip | ||
uses: ./ | ||
with: | ||
version: tip | ||
|
||
- name: Check installed version (tip) | ||
run: | | ||
sudo rm /usr/local/bin/ko # Uninstall previous versions. | ||
ko version | ||
# If KO_DOCKER_REPO is set during setup, it's set for future steps. | ||
- name: Pre-set KO_DOCKER_REPO | ||
uses: ./ | ||
env: | ||
KO_DOCKER_REPO: already-set | ||
|
||
- name: Check pre-set KO_DOCKER_REPO | ||
run: | | ||
if [[ "${KO_DOCKER_REPO}" != "already-set" ]]; then | ||
echo "${KO_DOCKER_REPO} != already-set" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/ko-build/setup-ko | ||
|
||
go 1.16 | ||
go 1.20 |