Skip to content

fix(deps): update all go dependencies main (main) (minor) #645

fix(deps): update all go dependencies main (main) (minor)

fix(deps): update all go dependencies main (main) (minor) #645

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: go/src/github.com/cilium/tetragon/
- name: Install Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.23.5'
- 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@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
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@cea33675329b799adccc9526aa5daccc26cd5052 # v0.0.19
with:
driver: docker
container-runtime: ${{ matrix.cri }}
- name: download build data
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
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