ci: convert test.yml to Woodpecker 0.15.4 pipeline: map format
This commit is contained in:
parent
fa0df9cbde
commit
92f2be64c8
@ -1,44 +1,32 @@
|
|||||||
---
|
---
|
||||||
when:
|
pipeline:
|
||||||
- event: [push, pull_request]
|
rust-fmt-check:
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: rust-fmt-check
|
|
||||||
image: rust:1.82-slim
|
image: rust:1.82-slim
|
||||||
commands:
|
commands:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- cargo fmt --manifest-path src-tauri/Cargo.toml --check
|
- cargo fmt --manifest-path src-tauri/Cargo.toml --check
|
||||||
|
|
||||||
- name: rust-clippy
|
rust-clippy:
|
||||||
image: rust:1.82-slim
|
image: rust:1.82-slim
|
||||||
commands:
|
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
|
- 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
|
- rustup component add clippy
|
||||||
- cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings
|
- cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings
|
||||||
|
|
||||||
- name: rust-tests
|
rust-tests:
|
||||||
image: rust:1.82-slim
|
image: rust:1.82-slim
|
||||||
commands:
|
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
|
- 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
|
- cargo test --manifest-path src-tauri/Cargo.toml
|
||||||
|
|
||||||
- name: frontend-typecheck
|
frontend-typecheck:
|
||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- npx tsc --noEmit
|
- npx tsc --noEmit
|
||||||
|
|
||||||
- name: frontend-tests
|
frontend-tests:
|
||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run test:run
|
- npm run test:run
|
||||||
|
|
||||||
- name: frontend-coverage
|
|
||||||
image: node:22-alpine
|
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
commands:
|
|
||||||
- npm ci
|
|
||||||
- npm run test:coverage
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user