CI & CD

The creation of CI/CD is a pain…

but i come across thing to make it easier:

Use (act)[https://nektosact.com] to test your workflow locally

act -j <job_name>

a dedicate branch for CI/CD Utilise une branche temporaire (ex: ci-test) et force-push (git push -f). Garde les commits squashed, ou utilise git commit —amend.

git checkout -b ci-test
git add .
git commit -m "test CI"

git push -u origin ci-test

la beauté arrive il suffit de commit amend pour ne pas polluer ton historique

git add .
git commit --amend --no-edit
git push -f