mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
add cargo clippy to CI
This commit is contained in:
parent
2232aa8083
commit
ca70d2c914
12 changed files with 98 additions and 93 deletions
|
@ -37,13 +37,38 @@ tasks:
|
|||
cd repo &&
|
||||
git config advice.detachedHead false &&
|
||||
git checkout ${ref} &&
|
||||
cargo test &&
|
||||
cargo fmt -- --check
|
||||
cargo test
|
||||
metadata:
|
||||
name: taskchampion-tests
|
||||
description: Run tests for taskchampion
|
||||
owner: dustin@v.igoro.us
|
||||
source: ${repo_url}
|
||||
- $if: run
|
||||
then:
|
||||
provisionerId: 'proj-misc'
|
||||
workerType: 'ci'
|
||||
deadline: {$fromNow: '1 hour'}
|
||||
expires: {$fromNow: '1 day'}
|
||||
payload:
|
||||
maxRunTime: 3600
|
||||
image: rust:latest
|
||||
command:
|
||||
- /bin/bash
|
||||
- '-c'
|
||||
- >-
|
||||
rustup component add rustfmt &&
|
||||
git clone ${repo_url} repo &&
|
||||
cd repo &&
|
||||
git config advice.detachedHead false &&
|
||||
git checkout ${ref} &&
|
||||
rustup component add clippy-preview &&
|
||||
cargo clippy &&
|
||||
cargo fmt -- --check
|
||||
metadata:
|
||||
name: taskchampion-clippy
|
||||
description: Run clippy and rustfmt for taskchampion
|
||||
owner: dustin@v.igoro.us
|
||||
source: ${repo_url}
|
||||
- $if: run
|
||||
then:
|
||||
provisionerId: 'proj-misc'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue