Automatiser tout
Votre code doit être testé et construit automatiquement à chaque push.
workflow.yml :
yaml
- name: Run Tests run: go test -v ./...
- name: Build binary run: go build -o main .
Cela garantit qu'aucun code cassé n'atteigne jamais la production.