diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml deleted file mode 100644 index aa1aff5..0000000 --- a/.gitea/workflows/test.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Tests C avec Criterion - -on: [push] - -jobs: - test: - runs-on: ubuntu-latest - container: - image: alpine:latest - - steps: - - name: Récupérer le code - uses: actions/checkout@v4 - - - name: Installer GCC et Criterion - run: apk add --no-cache gcc musl-dev criterion-dev - - - name: Compiler - run: gcc -Wall -Wextra -I./Chains_across_the_Island/Fundamentals/basics/ -o tests Chains_across_the_Island/Fundamentals/basics/basics.c tests/tests.c -lcriterion - - - name: Executer - run: ./tests diff --git a/.gitea/workflows/tets.yaml b/.gitea/workflows/tets.yaml new file mode 100644 index 0000000..28a07f9 --- /dev/null +++ b/.gitea/workflows/tets.yaml @@ -0,0 +1,30 @@ +name: Tests Basics avec Criterion + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + container: + # On utilise la version Alpine contenant Node.js 20 + image: node:20-alpine + + steps: + - name: Récupérer le code + uses: actions/checkout@v4 + + - name: Installer GCC et Criterion sur Alpine + # La commande apk fonctionne toujours car c'est un système Alpine + run: apk add --no-cache gcc musl-dev criterion-dev + + - name: Compiler les tests + run: > + gcc -Wall -Wextra + -I./Chains_across_the_Island/Fundamentals/basics + -o tests + Chains_across_the_Island/Fundamentals/basics/basics.c + tests/test_basics.c + -lcriterion + + - name: Exécuter les tests + run: ./tests diff --git a/tests/tests.c b/tests/test_basics.c similarity index 100% rename from tests/tests.c rename to tests/test_basics.c