Skip to content

Add Umami

Add Umami #79

Workflow file for this run

name: Check Vortex backend
on:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Use Rust cache
uses: Swatinem/rust-cache@v2
- name: Install tools
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest,cargo-machete
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y perl
- name: Run cargo build
run: cargo build
- name: Run cargo nextest
run: cargo nextest run
- name: Run cargo machete
run: cargo machete
- name: Check formatting
run: cargo fmt --check
- name: Check clippy
run: cargo clippy --all-features -- -D warnings
- name: Run server and smtp-fuzz.pl in parallel
run: |
sudo VITE_SENTRY_DSN=${{ secrets.VITE_SENTRY_DSN }} VITE_EMAIL_DOMAINS=localhost FRONTEND_DOMAIN=localhost LOG_DIR=/tmp ./target/debug/vortex-server &
SERVER_PID=$!
echo "Server running in background with PID $SERVER_PID"
# Wait for port 25 to be open
while ! nc -z 127.0.0.1 25; do
echo "Waiting for port 25 to be open..."
sleep 1
done
echo "Port 25 is open"
perl Copyleft/smtp-fuzz.pl 127.0.0.1 25 &
FUZZ_PID=$!
echo "smtp-fuzz.pl running in background with PID $FUZZ_PID"
wait $FUZZ_PID
echo "smtp-fuzz.pl has finished"