Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 46 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,51 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
restore-keys: |
${{ runner.os}}-node_modules-
- name: Build ${{ matrix.java-version }}
#Build et Test
- name: Build and Test ${{ matrix.java-version }}
run: mvn -B clean test
#Rickroll
- name: Rickroll
if: failure()
run: |
echo ""
echo "######################################################"
echo ""
echo ""
echo " ************"
echo " *********"
echo " ************"
echo " *********"
echo " *"
echo " *"
echo " *"
echo " * * *"
echo " ** * **"
echo " **** * ****"
echo " ****** * ******"
echo " ******** * ********"
echo " ********** * **********"
echo " ************ * ************"
echo " ************** * **************"
echo " *************************************************"
echo " *****************************************"
echo " *********************************"
echo " *****************************"
echo " *********************"
echo "###################################################"
echo "###################################################"
echo ""
echo ""
echo " OHÉ!! OHÉ!! MATELOT !! Matelot navigue sur les flots..."
echo ""
echo " Vos tests ont échoué ! :-("
echo " Corrigez votre code avant de vous noyer !!!!! "
echo ""

echo "::error title= Rickroll Test Failure:: Vos tests ont échoué!"
echo "::warning title= Meme::https://blog.zegocloud.com/wp-content/uploads/2024/02/programming-meme-22.jpg"
cat >> $GITHUB_STEP_SUMMARY << 'EOF'
![MEME](https://blog.zegocloud.com/wp-content/uploads/2024/02/programming-meme-22.jpg)

Un ou plusieurs tests ont échoué ! Corrigez votre code.
EOF
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.graphhopper.routing.weighting;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -136,4 +137,10 @@ public void testCalcTurnWeightTurnRealNode(){

verify(weighting, times(1)).calcTurnWeight(inEdge, realNode, outEdge);
}

//Test pour vérifier le Rickroll
/*@Test
public void testFailureRickroll(){
fail("Déclenchement du Rickroll");
}*/
}