30 lines
753 B
YAML
30 lines
753 B
YAML
name: Tests Basics avec Criterion
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: git.blackbucket.fr/lucas/epita_tp_c:latest
|
|
|
|
steps:
|
|
- name: Installation de l'env
|
|
run: pacman -Syu --noconfirm nodejs git gcc criterion
|
|
|
|
- name: Récupération du code
|
|
# Maintenant que Node et Git sont là, cette étape va fonctionner
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Compilation
|
|
run: >
|
|
gcc -Wall -Wextra
|
|
-I./Chains_across_the_Island/Fundamentals/basics
|
|
-o test
|
|
Chains_across_the_Island/Fundamentals/basics/basics.c
|
|
tests/test_basics.c
|
|
-lcriterion -fsanitize=address -g
|
|
|
|
- name: Tests
|
|
run: ./test
|