Commit a3141783 authored by Lukas's avatar Lukas
Browse files

Merge branch 'main' into 'main'

Update .gitlab-ci.yml file

See merge request !2
parents f2747bda 283b7b09
Pipeline #57 failed with stage
in 53 seconds
variables:
REPO_NAME: git.ucode.space/Lukas/img2txt
stages:
- test
format:
image: golang:latest
before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
stage: test
script:
- gofmt -s -w .
- go vet ./...
gosec:
image: golang:latest
before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
stage: test
script:
- go install github.com/securego/gosec/v2/cmd/gosec@latest
- go get -v -d .
- gosec ./...
test-build:
image: golang:latest
before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
stage: test
script:
- go get -v -d .
- GOOS=linux CGO_ENABLED=0 go build -o app.test .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment