Skip to content
Snippets Groups Projects
Commit ed511218 authored by Yana Kernerman's avatar Yana Kernerman
Browse files

Tut01 test exercise

parent 718984bc
No related branches found
No related tags found
1 merge request!6Tut01 test exercise
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "main"
when: always
- when: never
stages:
- test
- build
......@@ -15,7 +23,8 @@ job_test_the_code:
job_build_artifact:
stage: build
rules:
- when: always
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME =~ /main/
when: always
image: registry.hub.docker.com/library/golang:1.21
script:
- go get -t ./...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment