Skip to content

Add pod namespace and report full pod name #1

Add pod namespace and report full pod name

Add pod namespace and report full pod name #1

name: CI
on:
push:
branches: [main]
pull_request:
branches: ["**"]
jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
strategy:
fail-fast: true
max-parallel: 2
matrix:
go: ["stable"]
steps:
- name: Clone code
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/workflows/env
- name: Linter
run: |
go version
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2
make lint
test:
name: Test
runs-on: ubuntu-24.04
strategy:
fail-fast: true
max-parallel: 2
matrix:
go: ["stable"]
steps:
- name: Clone code
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/workflows/env
- name: Build
run: |
echo $PATH
make test
- name: Tests
run: |
make test
build-integration-test-binaries:
name: Build integration test binaries
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Clone code
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/workflows/env
- name: Prepare integration test binaries for qemu tests
run: |
make integration-test-binaries
- name: Upload integration test binaries
uses: actions/upload-artifact@v4
with:
name: integration-test-binaries
path: support/*.test
integration-tests:
name: Integration tests (kernel v${{ matrix.kernel-version }})
runs-on: ubuntu-24.04
needs: build-integration-test-binaries
strategy:
matrix:
kernel-version:
- "4.19.314"
- "5.4.276"
- "5.10.217"
- "5.15.159"
- "6.1.91"
- "6.6.31"
- "6.8.10"
- "6.9.1"
steps:
- name: Clone code
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/workflows/env
- name: Install dependencies
run: |
sudo apt-get -y install qemu-system-x86
go install github.com/florianl/[email protected]
sudo mv ~/go/bin/bluebox /usr/local/bin/.
- name: Fetch integration test binaries
uses: actions/download-artifact@v4
with: { name: integration-test-binaries }
- name: Fetch precompiled kernels
run: |
install -d ci-kernels
echo "FROM ghcr.io/cilium/ci-kernels:${{ matrix.kernel-version }}" \
| docker buildx build --quiet --pull --output="ci-kernels" -
mv ci-kernels/boot/ ci-kernels/${{ matrix.kernel-version }}/
- name: Test on kernel ${{ matrix.kernel-version }}
run: |
chmod a+rx *.test
support/run-tests.sh ${{ matrix.kernel-version }}