Skip to content

Commit

Permalink
Merge branch 'tests' of https://github.com/chartes/dots into tests
Browse files Browse the repository at this point in the history
récupération du travail en cours avec Lucas
  • Loading branch information
philippepons committed Mar 12, 2024
2 parents 23d845a + a23c282 commit 8763cb9
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/dots-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: DoTS XQuery CI
on: [push, pull_request]

jobs:
CI-init-basex-dots:

tests:
runs-on: ubuntu-latest

steps:
Expand All @@ -16,7 +15,7 @@ jobs:
with:
java-version: '11' # BaseX requiert Java

- name: CI Init (Download & install BaseX, DoTS folder migration)
- name: Create BaseX-DoTS test environment (Download & install BaseX, DoTS folder migration)
run: |
# TODO: move everything in a init.sh script in the future
cd .. &&
Expand All @@ -28,18 +27,20 @@ jobs:
cp -r ../dots/ ./webapp/ &&
./bin/basex ./webapp/dots/scripts/dots_db_init.xq
Start-basex-backend:
runs-on: ubuntu-latest
steps:

- name: Start BaseX backend
run : |
cd ../basex/ &&
./bin/basexhttp &
sleep 2 &&
curl http://localhost:8080 -I
- name: Start BaseX backend
run : |
cd ../basex/ &&
./bin/basexhttp &
sleep 2 &&
curl http://localhost:8080 -I
- name: Launch Tests
run : |
cd ../basex/ && ls -l
# TODO : refactoring generic command with variables like ./bin/basex in the future
./bin/basex ./webapp/dots/tests/launcher.xq

0 comments on commit 8763cb9

Please sign in to comment.