CI : workflow validate.yml, manifeste ci.required:true, package.json avec scripts verify
This commit is contained in:
26
.gitea/workflows/validate.yml
Normal file
26
.gitea/workflows/validate.yml
Normal file
@@ -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
|
||||
10
app.json
10
app.json
@@ -2,9 +2,15 @@
|
||||
"id": "portail-santinova",
|
||||
"name": "Portail Applicatif",
|
||||
"category": "INFRA",
|
||||
"urls": {"recette": "https://portail.recette.santinova-soft.org", "prod": "https://portail.santinova-soft.org"},
|
||||
"urls": {
|
||||
"recette": "https://portail.recette.santinova-soft.org",
|
||||
"prod": "https://portail.santinova-soft.org"
|
||||
},
|
||||
"containerName": "portail-santinova",
|
||||
"image": "images/portail.png",
|
||||
"giteaRepo": "portail-santinova",
|
||||
"giteaOwner": "manus-admin"
|
||||
"giteaOwner": "manus-admin",
|
||||
"ci": {
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
|
||||
11
package.json
Normal file
11
package.json
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user