Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
UrielBove authored Aug 14, 2024
0 parents commit 4e44daf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/NoBorrar.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No borrar la carpeta .github, permite que se corran automáticamente los tests al subir el código.
18 changes: 18 additions & 0 deletions .github/workflows/correrTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Correr tests

on: [push]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: logtalk-actions/setup-swi-prolog@master
- name: Run tests
run: |
if [ 0 == `find *.pl | wc -l` ] ; then
echo "No hay archivos Prolog en tu solución"
exit 1
fi
find *.pl | xargs -I{} swipl -s {} -g run_tests,halt -t 'halt(1)'
1 change: 1 addition & 0 deletions programa.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
% Aquí va el código.

0 comments on commit 4e44daf

Please sign in to comment.