33 lines
899 B
YAML
33 lines
899 B
YAML
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
|
|
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing 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
|