From 87069388afdd6129b27030fac4d8c1f7706d0178 Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 21 Mar 2023 11:39:31 +0100 Subject: [PATCH] validation stage --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6a66ece..f77a60e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: