29 lines
809 B
YAML
29 lines
809 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- run: cargo test --workspace --locked
|
|
- run: cargo build --release --package convertis --locked --target x86_64-unknown-linux-gnu
|
|
- name: Verify plugin-free recommendation
|
|
run: |
|
|
test_dir=$(mktemp -d)
|
|
cp target/x86_64-unknown-linux-gnu/release/convertis "$test_dir/"
|
|
output=$("$test_dir/convertis" --no-default-plugins assets/example.avif "$test_dir/example.png" 2>&1 || true)
|
|
echo "$output"
|
|
echo "$output" | grep -q "Install: convertis-imagemagick"
|