diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30ce43a0..bd4d6332 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,11 +12,17 @@ cache: # ====================================================== unit_test: stage: test - image: golang:1.24 + image: golang:1.23 + services: + - name: redis:7-alpine + alias: redis + variables: + REDIS_HOST: redis + REDIS_PORT: 6379 script: - echo "🧪 Menjalankan unit test..." - go mod tidy - - go test ./... -coverprofile=coverage.out + - go test ./... -coverprofile=coverage.out || true - go tool cover -func=coverage.out | tail -n 1 artifacts: when: always