Skip to content

bump version to v0.13.5 #182

bump version to v0.13.5

bump version to v0.13.5 #182

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
jobs:
test-go:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Run Go vet
run: go vet ./...
- name: Cache envtest binaries
uses: actions/cache@v4
with:
path: testbin
key: envtest-1.31.0-${{ runner.os }}
- name: Setup envtest binaries
run: |
make install-envtest
mkdir -p testbin
./bin/setup-envtest use 1.31.0 --bin-dir testbin -p path
- name: Run Go tests
run: |
KUBEBUILDER_ASSETS="$(pwd)/$(./bin/setup-envtest use 1.31.0 --bin-dir testbin -p path)" \
go test -tags=integration -coverprofile=coverage.txt ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.txt
test-rust:
runs-on: ubuntu-latest
container:
image: ghcr.io/varnish/varnish-base:8.0
options: --user root
steps:
- name: Install build tools and git
run: |
apt-get update && apt-get install -y \
curl build-essential pkg-config clang libclang-dev git
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.92.0 --component clippy
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run clippy (warnings as errors)
run: cd ghost && cargo clippy --release -- -D warnings
- name: Build ghost VMOD in release mode
run: cd ghost && cargo build --release
- name: Run Rust unit tests in release mode
run: cd ghost && cargo test --release --lib
- name: Run VTC integration tests
run: cd ghost && cargo test --release run_vtc_tests