Skip to content

Merge pull request #46 from SelfSend/staging Closes #15 #56

Merge pull request #46 from SelfSend/staging Closes #15

Merge pull request #46 from SelfSend/staging Closes #15 #56

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
basic-checks:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
MONGODB_URI: ${{ secrets.MONGODB_URI }}
DB_NAME_TEST: ${{ secrets.DB_NAME_TEST }}
DB_NAME_PRODUCTION: ${{ secrets.DB_NAME_PRODUCTION }}
DB_DISPOSABLE_EMAILS_COLLECTION: ${{ secrets.DB_DISPOSABLE_EMAILS_COLLECTION }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Build Project
run: cargo build --verbose
- name: Run Tests
run: cargo test --verbose
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Check Formatting
run: cargo fmt --all -- --check
- name: Lint with Clippy
run: cargo clippy -- -D warnings