validation stage

This commit is contained in:
Firq 2023-03-21 11:39:31 +01:00
parent 716e817723
commit 87069388af
Signed by: Firq
GPG key ID: 4DE1059A4666E89F

View file

@ -1,4 +1,5 @@
stages:
- validate
- build
- deploy
- post_deploy
@ -19,9 +20,21 @@ stages:
- chmod 644 ~/.ssh/known_hosts
- echo "SSH setup completed"
checking:
image: node:lts
stage: validate
only:
- main
before_script:
- npm install
script:
- echo "Running Astro checks"
- npm run astro check
build-site:
image: node:lts
stage: build
when: on_success
cache:
paths:
- node_modules/
@ -39,6 +52,7 @@ build-site:
deploy-site:
stage: deploy
when: on_success
only:
- main
before_script: