CI / test (push) Canceled after 0s
Flags were stored via Debug formatting of async-imap's Flag enum, which
produced Rust-internal spellings ("Seen", "Custom(\"$Junk\")") that don't
round-trip back through Flag::from and aren't what the schema documents.
Map to canonical wire spelling (\Seen, $Junk) before the webapp starts
depending on it, with tests pinning the format.
Adds Gitea Actions CI/release workflows, an nginx rate-limiting config
for the §7 gap, and a shared release-process doc. Records the decision
not to reconcile server-side flag changes or deletions, with the
conditions that should trigger revisiting it.
Also applies rustfmt and clears clippy, so CI passes from the first run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
41 lines
1007 B
YAML
41 lines
1007 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: rust:1-bookworm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# Cache both the registry and target dir — a cold Rust build here is
|
|
# several minutes, almost all of it dependencies that rarely change.
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: cargo-${{ hashFiles('Cargo.lock') }}
|
|
restore-keys: cargo-
|
|
|
|
- name: Check formatting
|
|
run: |
|
|
rustup component add rustfmt
|
|
cargo fmt --check
|
|
|
|
- name: Clippy
|
|
run: |
|
|
rustup component add clippy
|
|
cargo clippy --all-targets -- -D warnings
|
|
|
|
# No DATABASE_URL needed: queries are runtime-checked (sqlx::query_as),
|
|
# not compile-time macros, so this builds without a live Postgres.
|
|
- name: Test
|
|
run: cargo test --all
|