Add test stage to CI

- Adds a test stage using a Hugo image.
- Runs `hugo version` and `hugo --minify` in the test stage.
- Restricts test execution to merge requests and master branches.
This commit is contained in:
Roger Gonzalez 2025-03-30 09:53:34 -03:00
parent 61389a9ca8
commit 658581e147
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -1,5 +1,19 @@
image: alpine:latest
stages:
- test
- deploy
test_build:
stage: test
image: klakegg/hugo:0.111.3-ext-alpine
script:
- hugo version
- hugo --minify
only:
- merge_requests
- master
deploy:
stage: deploy
before_script: