Skip to content

Fixed lints

Fixed lints #403

Workflow file for this run

on: push
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
with:
key: check-${{ runner.os }}
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Generate Test Keypair
run: rm -rf .ssh && mkdir .ssh && ssh-keygen -t ed25519 -f .ssh/id_ed25519 -q -P ""
- name: Run cargo check
run: cargo check --tests
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --tests -- -Dwarnings
- name: Run cargo test
run: cargo test
release-build:
name: Release Build
needs: check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
with:
key: release-${{ runner.os }}
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo build
run: cargo build --release
container-build:
name: Container Build
needs: check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Cache OCI Container layers
uses: jpribyl/[email protected]
- name: Build OCI Container image
run: docker build -f Containerfile .