mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 07:26:55 +00:00
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
182eccea3d
commit
c5816f35b6
4 changed files with 18 additions and 15 deletions
17
.github/workflows/cli.yaml
vendored
17
.github/workflows/cli.yaml
vendored
|
@ -1,4 +1,5 @@
|
|||
name: cli
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
@ -16,25 +17,20 @@ on:
|
|||
- 'README.md'
|
||||
- '.github/config.yml'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
cli-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
|
||||
|
||||
- name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
||||
with:
|
||||
go-version: ~1.19.4
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # pin@v3
|
||||
uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
|
@ -42,8 +38,7 @@ jobs:
|
|||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Test Policy
|
||||
- name: Setup TEST_GIT_BRANCH
|
||||
run: |
|
||||
if [[ ${{ github.event_name }} == "push" ]]
|
||||
then
|
||||
|
@ -52,7 +47,11 @@ jobs:
|
|||
then
|
||||
export TEST_GIT_BRANCH=${{ github.event.pull_request.base.ref }}
|
||||
fi
|
||||
make -j4 test-cli
|
||||
- name: Test CLI
|
||||
run: |
|
||||
make test-cli
|
||||
- name: Test CLI (failures)
|
||||
run: |
|
||||
CLI_PATH=$PWD/cmd/cli/kubectl-kyverno/kubectl-kyverno
|
||||
$CLI_PATH test ./test/cli/test-fail/missing-policy && exit 1 || exit 0
|
||||
$CLI_PATH test ./test/cli/test-fail/missing-rule && exit 1 || exit 0
|
||||
|
|
6
.github/workflows/comment-commands.yaml
vendored
6
.github/workflows/comment-commands.yaml
vendored
|
@ -2,7 +2,9 @@ name: Issue and PR comment commands
|
|||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created, edited]
|
||||
types:
|
||||
- created
|
||||
- edited
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
@ -12,7 +14,7 @@ jobs:
|
|||
execute:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: jpmcb/prow-github-actions@f4d01dd4b13f289014c23fe5a19878a2479cb35b
|
||||
- uses: jpmcb/prow-github-actions@f4d01dd4b13f289014c23fe5a19878a2479cb35b # v1.1.3
|
||||
with:
|
||||
prow-commands: '/assign
|
||||
/unassign
|
||||
|
|
6
.github/workflows/fossa.yml
vendored
6
.github/workflows/fossa.yml
vendored
|
@ -2,9 +2,11 @@ name: FOSSA
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
4
.github/workflows/pr-update.yaml
vendored
4
.github/workflows/pr-update.yaml
vendored
|
@ -19,5 +19,5 @@ jobs:
|
|||
base: ${{ github.ref_name }}
|
||||
required_approval_count: 1
|
||||
require_passed_checks: false
|
||||
sort: 'updated'
|
||||
direction: 'asc'
|
||||
sort: updated
|
||||
direction: asc
|
||||
|
|
Loading…
Add table
Reference in a new issue