-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (51 loc) · 1.52 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: integration
on:
pull_request:
paths:
- Cargo.toml
- '**/*.rs'
- .github/workflows/integration.yml
permissions:
contents: read
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
RUST_VERSION: 1.64.0
K3D_VERSION: v5.4.6
K3D_CREATE_FLAGS: '--no-lb'
K3S_DISABLE: 'local-storage,traefik,servicelb,metrics-server@server:*'
NEXTEST_VERSION: '0.9.42'
jobs:
test:
strategy:
matrix:
k8s:
- v1.22
- v1.28
timeout-minutes: 10
runs-on: ubuntu-latest
env:
K8S_CHANNEL: ${{ matrix.k8s }}
steps:
# Install just* tooling
- uses: linkerd/dev/actions/setup-tools@v42
# Configure the default Rust toolchain
- uses: linkerd/dev/actions/setup-rust@v42
# Setup a cluster
- run: curl --proto =https --tlsv1.3 -fLsSv "https://raw.githubusercontent.com/k3d-io/k3d/${K3D_VERSION}/install.sh" | bash
- run: k3d --version
- run: just-k3d create
- run: kubectl version
# Install CRDs
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: kubernetes-sigs/gateway-api
ref: 4f86f0bd65173b04dadb558f63fbbd53330736d2 # 0.5.0-rc1
path: gateway-api
- run: kubectl apply -k gateway-api/config/crd/experimental/
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# Run tests
- run: just fetch
- run: just test-build --package=integration
- run: just test --package=integration