diff --git a/.gitea/workflows/validate.yml b/.gitea/workflows/validate.yml new file mode 100644 index 0000000..1b31211 --- /dev/null +++ b/.gitea/workflows/validate.yml @@ -0,0 +1,26 @@ +name: Validation applicative + +on: + push: + branches: [main, master] + paths-ignore: + - "**.md" + - "docs/**" + pull_request: + branches: [main, master] + paths-ignore: + - "**.md" + - "docs/**" + workflow_dispatch: + +jobs: + verify: + name: Tests de contrat + runs-on: ci-node22 + timeout-minutes: 5 + steps: + - name: Récupérer les sources + uses: actions/checkout@v4 + + - name: Vérifier le contrat du portail + run: node test/portal-contract.test.js diff --git a/app.json b/app.json index f3f8004..46d2559 100644 --- a/app.json +++ b/app.json @@ -9,5 +9,8 @@ "containerName": "portail-santinova", "image": "images/portail.png", "giteaRepo": "portail-santinova", - "giteaOwner": "manus-admin" + "giteaOwner": "manus-admin", + "ci": { + "required": true + } } diff --git a/package.json b/package.json new file mode 100644 index 0000000..fdac71e --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "portail-santinova", + "version": "1.0.0", + "private": true, + "scripts": { + "test": "node test/portal-contract.test.js", + "check": "echo 'No TypeScript — skip'", + "build": "echo 'Static site — no build step'", + "verify": "pnpm check && pnpm test && pnpm build" + } +}