Skip to content

feat(chart): add rustfs-resources chart for declaring CR instances fr… #8

feat(chart): add rustfs-resources chart for declaring CR instances fr…

feat(chart): add rustfs-resources chart for declaring CR instances fr… #8

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
lint-and-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-targets --features integration,e2e -- -D warnings
- name: Unit tests
run: cargo test
- name: Helm lint
run: helm lint charts/rustfs-operator
container-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Integration tests (RustFS container)
run: cargo test --features integration --test integration_rustfs
- name: E2E tests (k3s + RustFS containers)
run: cargo test --features e2e --test e2e_k3s
# Validates the Dockerfile and seeds the buildx GHA cache on the default
# branch, so tag-triggered release builds can restore it (Actions cache is
# isolated per ref except for the default branch).
image-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
push: false
cache-from: type=gha
cache-to: type=gha,mode=max