1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-10-20 05:30:26 +00:00

Only check formatting on modified files (#1673)

* only check formatting on modified files (attempt 1)

* foreshadow maximum command string length being an issue and pass files list using a file

* rm temp file list otherwise it shows in git status and counts as a "formatting diff"...

* cheeky z_play modif

* format
This commit is contained in:
Dragorn421 2024-01-31 04:25:24 +01:00 committed by GitHub
commit 44408ce219
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 66 additions and 7 deletions

20
Jenkinsfile vendored
View file

@ -4,10 +4,24 @@ pipeline {
}
stages {
stage('Check formatting') {
stage('Check formatting (full)') {
when {
branch 'main'
}
steps {
echo 'Checking formatting...'
sh 'tools/check_format.sh'
echo 'Checking formatting on all files...'
sh 'tools/check_format.sh full'
}
}
stage('Check formatting (modified)') {
when {
not {
branch 'main'
}
}
steps {
echo 'Checking formatting on modified files...'
sh 'tools/check_format.sh modified'
}
}
stage('Setup') {