docs: add description of ConfigMap mapping #480
Workflow file for this run
This file contains hidden or 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: Tests | |
on: | |
push: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
pre_job: | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
skip_after_successful_duplicate: "true" | |
paths_ignore: '["**/*.md", "**/*.svg", "**/*.png", ".gitignore"]' | |
lint_check: | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install system dependencies | |
run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev | |
- name: Install toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: "1.85" | |
components: clippy, rustfmt | |
- name: Checking code format | |
run: cargo fmt -- --check --config use_try_shorthand=true | |
- name: Clippy | |
uses: clechasseur/rs-clippy-check@v3 | |
with: | |
args: --all-features --bins --examples --tests --benches -- -W clippy::all -W clippy::pedantic -D warnings | |
tests: | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
container: | |
image: docker.binary.picodata.io/picodata:25.1.1 | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install system dependencies | |
run: dnf install -y gcc git make openssl-devel pkgconfig | |
- name: Install toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: "1.85" | |
components: clippy, rustfmt | |
- name: Run tests | |
run: cargo test | |
env: | |
RUST_LOG: debug |