1
0
mirror of https://gitlab.com/Anson-Projects/zine.git synced 2025-07-26 16:21:22 +00:00

Use Custom Struct

This commit is contained in:
2024-04-12 05:45:43 +00:00
parent 841af6aa41
commit f2ff3e3640
9 changed files with 630 additions and 400 deletions

View File

@@ -1,4 +1,6 @@
stages:
- build
- lint
- test
- build_site
- deploy
@@ -13,14 +15,26 @@ cache:
- target/
- cargo/
build:
image: rust:latest
stage: build
script:
- cargo build
lint:
image: rust:latest
stage: lint
script:
- rustup component add clippy
- cargo clippy --all-targets -- -D warnings
test:
image: rust:latest
stage: test
script:
- cargo test --verbose
- cargo test --verbose
rules:
- if: "$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH"
build_site:
image: rust:latest
@@ -44,8 +58,6 @@ pages:
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
workflow:
name: $CI_COMMIT_REF_NAME
rules:
@@ -54,4 +66,4 @@ workflow:
CI_COMMIT_REF_NAME: $SCHEDULED_PIPELINE_NAME
- if: $SCHEDULED_BUILD_PIPELINE != 'true'
variables:
CI_COMMIT_REF_NAME: $DEFAULT_PIPELINE_NAME
CI_COMMIT_REF_NAME: $DEFAULT_PIPELINE_NAME