From 045fc90364e0abf5759aee83d0e135ae991f29a4 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 13 Apr 2025 21:16:10 +0200 Subject: [PATCH] feat: add forestci --- .forest-ci/workflows/build.yaml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .forest-ci/workflows/build.yaml diff --git a/.forest-ci/workflows/build.yaml b/.forest-ci/workflows/build.yaml new file mode 100644 index 0000000..09b73c4 --- /dev/null +++ b/.forest-ci/workflows/build.yaml @@ -0,0 +1,41 @@ +name: Build Forest + +on: + - push + - pull_request + +env: + CARGO_TERM_COLOR: always + RUST_BACKTRACE: 1 + +jobs: + build: + env: + RUSTFLAGS: -D warnings + timeout_minutes: 30 + steps: + + - name: Build application + uses: rustlang/rust:nightly + run: + - export SQLX_OFFLINE=true + - cargo build --release + + - name: Run tests + uses: rustlang/rust:nightly + run: + - cargo test + + - name: Check code formatting + uses: rustlang/rust:nightly + run: + - cargo fmt -- --check + continue_on_error: true + + - name: Run clippy lints + uses: rustlang/rust:nightly + run: + - rustup component add clippy + - cargo clippy -- -D warnings + continue_on_error: true +