Skip to content

fix: formatted kem and signing_key #18

fix: formatted kem and signing_key

fix: formatted kem and signing_key #18

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
RUST_BACKTRACE: 1
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with: { components: rustfmt }
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with: { components: clippy }
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features
test:
name: Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: vauxl
POSTGRES_PASSWORD: vauxl
POSTGRES_DB: vauxl
POSTGRES_HOST_AUTH_METHOD: trust
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:7-alpine
ports: ["6379:6379"]
env:
DATABASE_URL: postgres://vauxl:vauxl@localhost/vauxl?sslmode=disable
REDIS_URL: redis://localhost:6379
SQLX_OFFLINE: true
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install psql client
run: sudo apt-get install -y postgresql-client
- name: Run migrations
run: |
PGPASSWORD=vauxl psql -h localhost -U vauxl -d vauxl \
-f migrations/001_initial_schema.sql
- name: Run tests
run: cargo test --all
deny:
name: Security & Licenses (cargo-deny)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check advisories licenses bans sources