Skip to content

chore(deps): Bump actions/setup-go from 4.1.0 to 5.0.0 #65

chore(deps): Bump actions/setup-go from 4.1.0 to 5.0.0

chore(deps): Bump actions/setup-go from 4.1.0 to 5.0.0 #65

Workflow file for this run

name: test-action
on:
pull_request:
push:
branches:
- main
jobs:
default:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Install Kyverno CLI and test presence in path
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Install Kyverno CLI
uses: ./
- name: Check install
run: kyverno version
- name: Check root directory
shell: bash
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
verify:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Install Kyverno CLI with cosign verification and test presence in path
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Install Cosign
uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
- name: Install Kyverno CLI
uses: ./
with:
verify: true
- name: Check install
run: kyverno version
- name: Check root directory
shell: bash
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Install Kyverno CLI and test presence in path from GitHub
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Install Kyverno CLI
uses: kyverno/[email protected]
- name: Check install
run: kyverno version
- name: Check root directory
shell: bash
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
custom:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Install Kyverno CLI and test presence in path
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Install Kyverno CLI
uses: ./
with:
release: 'v1.9.5'
- name: Check install
run: kyverno version
- name: Check root directory
shell: bash
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
wrong_version:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Try to install a wrong version
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Install Kyverno CLI
uses: ./
with:
release: honk
continue-on-error: true
custom_dir:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Install Kyverno CLI and test presence in path
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Install Kyverno CLI
uses: ./
with:
install-dir: "$HOME/.kyvernotest"
- name: Check install
run: kyverno version
- name: Check install dir
shell: bash
run: |
[[ $(dirname "$(which kyverno)") == "$HOME/.kyvernotest" ]]
- name: Check root directory
shell: bash
run: |
[[ -z $(git diff --stat) ]]
custom_dir_root:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
permissions: {}
name: Install Kyverno CLI and test presence in path with custom root dir
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Install Kyverno CLI
uses: ./
with:
install-dir: /usr/bin
use-sudo: true
- name: Check install
run: kyverno version
- name: Check install dir
shell: bash
run: |
[[ $(dirname "$(which kyverno)") == /usr/bin ]]
- name: Check root directory
shell: bash
run: |
[[ -z $(git diff --stat) ]]
main:
permissions: {}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
go_version:
- '1.21'
name: Try to install with go ${{ matrix.go_version }}
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go_version }}
check-latest: true
- name: Install Kyverno CLI
uses: ./
with:
release: main
- name: Check install
run: kyverno version
required:
needs:
- default
- verify
- release
- custom
- wrong_version
- custom_dir
- custom_dir_root
- main
runs-on: ubuntu-latest
steps:
- run: echo "Required jobs success!"