From 92c0e78be37617b43906f193966b15af7ddb18bd Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 28 Apr 2021 22:53:02 -0400 Subject: [PATCH] test macos --- .github/workflows/use-action-macos.yaml | 35 +++++++++++++++++++++++++ .github/workflows/use-action.yaml | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/use-action-macos.yaml diff --git a/.github/workflows/use-action-macos.yaml b/.github/workflows/use-action-macos.yaml new file mode 100644 index 0000000..06a0129 --- /dev/null +++ b/.github/workflows/use-action-macos.yaml @@ -0,0 +1,35 @@ +name: Use Action (macOS) + +on: + push: + branches: ['main'] + +jobs: + use-action: + name: Use Action + runs-on: macos-latest + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.16 + - uses: actions/checkout@v2 + + # Minimal publish + - uses: imjasonh/setup-ko@main + - run: ko publish --bare ./ + + # Install an old release. + - uses: imjasonh/setup-ko@main + with: + version: v0.8.0 + - name: Check installed version + run: ko version | grep 0.8.0 + + # Install from tip + - uses: imjasonh/setup-ko@v0.1 + with: + version: tip + - name: Check installed version (tip) + run: | + sudo rm /usr/local/bin/ko # Uninstall previous versions. + ko version diff --git a/.github/workflows/use-action.yaml b/.github/workflows/use-action.yaml index 3a9879d..b81be84 100644 --- a/.github/workflows/use-action.yaml +++ b/.github/workflows/use-action.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v2 # Minimal publish - - uses: imjasonh/setup-ko@main + - uses: imjasonh/setup-ko@v0.1 - run: ko publish --bare ./ # Install an old release.