mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
CI: add stage test
This commit is contained in:
parent
bb2f0dfb35
commit
6ff38ffcfc
1 changed files with 17 additions and 0 deletions
|
@ -6,6 +6,7 @@ variables:
|
|||
stages:
|
||||
- prepare
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
# Stage: prepare
|
||||
|
@ -52,6 +53,22 @@ build:backend:
|
|||
- go mod tidy
|
||||
- go build
|
||||
|
||||
|
||||
# Stage: test
|
||||
##############################################################################
|
||||
|
||||
test:backend:
|
||||
stage: test
|
||||
tags:
|
||||
- docker
|
||||
image: villaswebbackendgo:debian
|
||||
script:
|
||||
- go mod tidy
|
||||
- cd common
|
||||
- go test
|
||||
dependencies:
|
||||
- build:backend
|
||||
|
||||
# Stage: deploy
|
||||
##############################################################################
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue