Skip to content

Revert "feature: finish adding tag_set to the database" #2218

Revert "feature: finish adding tag_set to the database"

Revert "feature: finish adding tag_set to the database" #2218

Workflow file for this run

name: rust test suite
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- 'server/**'
jobs:
cargo-fmt:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v1
- name: Cargo fmt
run: cargo fmt --manifest-path=./server/Cargo.toml -- --check
clippy_check_ingestion:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v1
- name: Caching Rust Dep
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add clippy
- uses: clechasseur/rs-clippy-check@v3
with:
args: --features runtime-env --bin ingestion-worker --manifest-path server/Cargo.toml
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.labels }}-rust-${{ matrix.rust }}-
clippy_check_file_worker:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v1
- name: Caching Rust Dep
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add clippy
- uses: clechasseur/rs-clippy-check@v3
with:
args: --features runtime-env --bin file-worker --manifest-path server/Cargo.toml
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.labels }}-rust-${{ matrix.rust }}-
clippy_check:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v1
- name: Caching Rust Dep
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add clippy
- uses: clechasseur/rs-clippy-check@v3
with:
args: --features runtime-env --manifest-path server/Cargo.toml
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.labels }}-rust-${{ matrix.rust }}-
redoc:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2
- name: Caching Rust Dep
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Installing Vaccum
run: npm install -g @quobix/vacuum
- name: Generating OpenAPI spec
run: cargo run --features runtime-env --manifest-path server/Cargo.toml --bin redoc_ci > openapi.json
- name: Vaccum lint
run: vacuum lint openapi.json -r '.github/rules.yaml' -d