chore(deps): bump rustls from 0.21.11 to 0.23.8 #687
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: CI | |
on: | |
merge_group: | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
K3D_VERSION: v5.4.3 | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
unit_test: | |
name: Unit test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
rust: [stable] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Run unit tests | |
run: cargo test --lib --all-features | |
unit_test_k8_client_feature_flags: | |
name: Unit test feature flags | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
rust: [stable] | |
features: | |
["openssl_tls,k8", "openssl_tls", "native_tls,k8", "native_tls", "rust_tls", "openssl_tls,memory_client"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Run unit tests | |
run: cargo test --lib -p k8-client --no-default-features --features ${{ matrix.features }} | |
check_fmt: | |
name: check cargo fmt | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: [stable] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: fmt | |
run: make check-fmt | |
check_clippy: | |
name: clippy check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: [stable] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.os }} | |
- name: clippy | |
run: make check-clippy | |
k8_integration_test: | |
name: Kubernetes integration test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
k8: [minikube, k3d, kind] | |
rust: [stable] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- uses: Swatinem/rust-cache@v1 | |
with: | |
key: ${{ matrix.os }}-${{ matrix.k8 }} | |
- name: Install Minikube for Github runner | |
if: startsWith(matrix.k8,'minikube') | |
uses: manusa/actions-setup-minikube@v2.11.0 | |
with: | |
minikube version: "v1.22.0" | |
kubernetes version: "v1.23.10" | |
github token: ${{ secrets.GITHUB_TOKEN }} | |
driver: docker | |
- name: Install k3d | |
if: startsWith(matrix.k8,'k3d') | |
run: | | |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash | |
k3d cluster create fluvio-k3d --image rancher/k3s:v1.23.14-k3s1-amd64 | |
- name: Install Kind | |
if: startsWith(matrix.k8,'kind') | |
run: | | |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 | |
chmod +x ./kind | |
./kind create cluster | |
- name: Test K8 Installation | |
run: | | |
kubectl get nodes | |
kubectl config view | |
- name: Build test | |
run: cargo build --tests --all-features | |
- name: K8 client integration test native | |
run: make k8-client-integration-test-native | |
timeout-minutes: 2 | |
done: | |
name: Done | |
needs: | |
- unit_test | |
- check_fmt | |
- check_clippy | |
- k8_integration_test | |
- unit_test_k8_client_feature_flags | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump needs context | |
env: | |
CONTEXT: ${{ toJson(needs) }} | |
run: | | |
echo -e "\033[33;1;4mDump context\033[0m" | |
echo -e "$CONTEXT\n" | |
- name: Report failure on cancellation | |
if: ${{ contains(needs.*.result, 'cancelled') || cancelled() }} | |
run: exit 1 | |
- name: Failing test and build | |
if: ${{ contains(needs.*.result, 'failure') }} | |
run: exit 1 | |
- name: Don't allow skipped | |
if: ${{ contains(needs.*.result, 'skipped') && github.event_name == 'merge_group' }} | |
run: exit 1 | |
- name: Successful test and build | |
if: ${{ !(contains(needs.*.result, 'failure')) }} | |
run: exit 0 | |
- name: Done | |
run: echo "Done!" |