chore(deps): Bump actions/setup-go from 5.1.0 to 5.2.0 #99
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Action | |
permissions: {} | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
default: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
permissions: {} | |
name: Install Chainsaw and test presence in path | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Chainsaw | |
uses: ./ | |
- name: Check install | |
run: chainsaw 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 Chainsaw with cosign verification and test presence in path | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 | |
- name: Install Chainsaw | |
uses: ./ | |
with: | |
verify: true | |
- name: Check install | |
run: chainsaw 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 Chainsaw and test presence in path from GitHub | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Chainsaw | |
uses: kyverno/action-install-chainsaw@main | |
- name: Check install | |
run: chainsaw 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 Chainsaw and test presence in path | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Chainsaw | |
uses: ./ | |
with: | |
release: v0.0.6 | |
- name: Check install | |
run: chainsaw 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Chainsaw | |
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 Chainsaw and test presence in path | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Chainsaw | |
uses: ./ | |
with: | |
install-dir: "$HOME/.chainsawtest" | |
- name: Check install | |
run: chainsaw version | |
- name: Check install dir | |
shell: bash | |
run: | | |
[[ $(dirname "$(which chainsaw)") == "$HOME/.chainsawtest" ]] | |
- 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 Chainsaw and test presence in path with custom root dir | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Chainsaw | |
uses: ./ | |
with: | |
install-dir: /usr/bin | |
use-sudo: true | |
- name: Check install | |
run: chainsaw version | |
- name: Check install dir | |
shell: bash | |
run: | | |
[[ $(dirname "$(which chainsaw)") == /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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version: ${{ matrix.go_version }} | |
- name: Install Chainsaw | |
uses: ./ | |
with: | |
release: main | |
- name: Check install | |
run: chainsaw 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!" |