From db23925de19cae76aef2bb980c744c67fc14415f Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 2 Apr 2026 02:04:50 +0200 Subject: [PATCH] test n2 --- .gitea/workflows/test.yaml | 22 ---------------------- .gitea/workflows/tets.yaml | 30 ++++++++++++++++++++++++++++++ tests/{tests.c => test_basics.c} | 0 3 files changed, 30 insertions(+), 22 deletions(-) delete mode 100644 .gitea/workflows/test.yaml create mode 100644 .gitea/workflows/tets.yaml rename tests/{tests.c => test_basics.c} (100%) 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