Add support to dump processCache #92
Workflow file for this run
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
name: tetragon-rthooks test | |
on: | |
pull_request: | |
paths: | |
- 'contrib/tetragon-rthooks/**' | |
push: | |
branches: | |
- main | |
paths: | |
- 'contrib/tetragon-rthooks/**' | |
jobs: | |
build: | |
name: Build tetragon-rthooks | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
concurrency: | |
group: ${{ github.ref }}-rthooks-build | |
cancel-in-progress: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
path: go/src/github.com/cilium/tetragon/ | |
- name: Install Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
# renovate: datasource=golang-version depName=go | |
go-version: '1.22.6' | |
- name: Build | |
env: | |
GOPATH: /home/runner/work/tetragon/tetragon/go | |
run: | | |
cd go/src/github.com/cilium/tetragon/contrib/tetragon-rthooks | |
make | |
- name: tar build | |
run: | | |
cd go/src/github.com/cilium/tetragon/contrib | |
tar cz -f /tmp/tetragon-rthooks.tar ./tetragon-rthooks | |
- name: upload build | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | |
with: | |
name: tetragon-rthooks-build | |
path: /tmp/tetragon-rthooks.tar | |
retention-days: 1 | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
cri: | |
- "containerd" | |
- "crio" | |
concurrency: | |
group: ${{ github.ref }}-rthooks-test-${{ matrix.cri }} | |
cancel-in-progress: true | |
steps: | |
- name: start minikube | |
uses: medyagh/setup-minikube@d8c0eb871f6f455542491d86a574477bd3894533 # v0.0.18 | |
with: | |
driver: docker | |
container-runtime: ${{ matrix.cri }} | |
- name: download build data | |
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 | |
with: | |
name: tetragon-rthooks-build | |
- name: extract build data | |
run: | | |
tar xf tetragon-rthooks.tar | |
- name: run test | |
run: | | |
cd tetragon-rthooks | |
./scripts/minikube-install-hook.sh -l | |
./scripts/minikube-test-hook.sh |