Skip to content
Snippets Groups Projects
Commit 1f57fd0f authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/PRXS-1022-GitlabPipline' into 'master'

Добавлен pipeline gitlab на запуск тестов при merge и на MR

See merge request perxis/perxis-go!9
parents 617e00e3 e9ba5b5c
No related branches found
No related tags found
No related merge requests found
image: golang:latest
stages:
- test
run_tests:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
stage: test
script:
- go fmt ./...
- go vet ./...
- go install gotest.tools/gotestsum@latest
- gotestsum --format testname --junitfile report.xml
artifacts:
when: always
reports:
junit: report.xml
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