Added steps to all the parallel stages
Some checks failed
gitea/zero_to_prod/pipeline/head There was a failure building this commit

This commit is contained in:
2024-05-20 01:31:41 +02:00
parent 4c7bdfee17
commit d3d6d5fabc

6
Jenkinsfile vendored
View File

@@ -20,19 +20,25 @@ pipeline {
} }
} }
stage('Check Formatting') { stage('Check Formatting') {
steps {
echo 'Starting format check...' echo 'Starting format check...'
sh 'cargo fmt --check' sh 'cargo fmt --check'
} }
}
stage('Clippy') { stage('Clippy') {
steps {
echo 'Starting linter...' echo 'Starting linter...'
sh 'cargo clippy -- -D warnings' sh 'cargo clippy -- -D warnings'
} }
}
stage('Code coverage') { stage('Code coverage') {
steps {
echo 'Starting code coverage step...' echo 'Starting code coverage step...'
sh 'cargo tarpaulin --verbose --workspace' sh 'cargo tarpaulin --verbose --workspace'
} }
} }
} }
}
// Build and deploy will occur here probably // Build and deploy will occur here probably
} }