Skip to content

Commit 1f08ec6

Browse files
committed
feat: add release script and dependencies for markdown linting and release management
1 parent 6841df4 commit 1f08ec6

File tree

5 files changed

+4044
-134
lines changed

5 files changed

+4044
-134
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,52 @@ on:
66
branches: [main, develop]
77

88
jobs:
9-
ci:
9+
lint:
10+
runs-on: ubuntu-24.04
11+
timeout-minutes: 60
12+
env:
13+
DOCKER_INTERACTIVE: false
14+
steps:
15+
# === SETUP PHASE ===
16+
- name: Checkout
17+
uses: actions/checkout@v5
18+
with:
19+
submodules: recursive
20+
21+
- name: Setup Docker Compose
22+
uses: docker/setup-compose-action@v1
23+
24+
- name: Setup Task
25+
uses: go-task/setup-task@v1
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v6
29+
with:
30+
node-version-file: '.nvmrc'
31+
cache: 'npm'
32+
cache-dependency-path: 'package-lock.json'
33+
34+
- name: Setup cache
35+
uses: actions/cache@v4
36+
with:
37+
path: node_modules
38+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
39+
restore-keys: ${{ runner.os }}-node-
40+
41+
- name: Install dependencies
42+
run: |
43+
if [ ! -d node_modules ]; then
44+
npm install
45+
fi
46+
47+
- name: Setup environment files
48+
run: |
49+
cp .env.example .env
50+
51+
- name: lint all
52+
run: task lint:all
53+
54+
launch:
1055
runs-on: ubuntu-24.04
1156
timeout-minutes: 60
1257
env:
@@ -82,6 +127,12 @@ jobs:
82127
CYPRESS_CACHE_FOLDER: ~/.cache/Cypress
83128
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
84129

130+
- name: Docker stack stop
131+
if: always()
132+
run: |
133+
docker stack rm phpfpm
134+
docker stack rm lampy
135+
85136
# === ARTIFACTS PHASE ===
86137
- name: Archive test results
87138
uses: actions/upload-artifact@v4

.release-it.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"git": {
3+
"requireBranch": "main",
4+
"commitMessage": "chore: release v${version}"
5+
},
6+
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
7+
"github": {
8+
"release": true
9+
},
10+
"hooks": {
11+
"before:init": ["git pull", "task lint:all"],
12+
"after:bump": "npx auto-changelog -p"
13+
}
14+
}

Taskfile.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ tasks:
3434
- task --list
3535
- echo ""
3636

37+
lint:all:
38+
desc: "Exécute tous les linters disponibles"
39+
cmds:
40+
- npm run lint:markdown
41+
3742
info:
3843
desc: "Affiche les informations du projet avec les variables d'environnement"
3944
silent: true

0 commit comments

Comments
 (0)