diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 34ca7150..e7120402 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,44 +1,32 @@ --- -when: - - event: [push, pull_request] - -steps: - - name: rust-fmt-check +pipeline: + rust-fmt-check: image: rust:1.82-slim commands: - rustup component add rustfmt - cargo fmt --manifest-path src-tauri/Cargo.toml --check - - name: rust-clippy + rust-clippy: image: rust:1.82-slim commands: - apt-get update -qq && apt-get install -y -qq libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf pkg-config - rustup component add clippy - cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings - - name: rust-tests + rust-tests: image: rust:1.82-slim commands: - apt-get update -qq && apt-get install -y -qq libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf pkg-config - cargo test --manifest-path src-tauri/Cargo.toml - - name: frontend-typecheck + frontend-typecheck: image: node:22-alpine commands: - npm ci - npx tsc --noEmit - - name: frontend-tests + frontend-tests: image: node:22-alpine commands: - npm ci - npm run test:run - - - name: frontend-coverage - image: node:22-alpine - when: - - event: push - branch: main - commands: - - npm ci - - npm run test:coverage