Skip to content
Snippets Groups Projects
Commit da9767a1 authored by Torgrim's avatar Torgrim
Browse files

Updated Repo with Pipeline and Coverage Badge in readme.md

parent 0b4760cb
Branches
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ Test: ...@@ -24,7 +24,7 @@ Test:
stage: Test stage: Test
before_script: before_script:
- cd ./Go/ - cd ./Go/
- apk add --no-cache curl bash go - apk add --no-cache curl bash
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash > /dev/null 2>&1 - curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash > /dev/null 2>&1
script: script:
- docker compose up globeboard-test --exit-code-from globeboard-test - docker compose up globeboard-test --exit-code-from globeboard-test
...@@ -32,6 +32,7 @@ Test: ...@@ -32,6 +32,7 @@ Test:
after_script: after_script:
- cd ./Go/ - cd ./Go/
- docker compose down globeboard-test - docker compose down globeboard-test
coverage: '/coverage:\s+(\d+\.\d+)%\s+of statements/'
artifacts: artifacts:
when: always when: always
paths: paths:
......
PORT=8080 PORT=8080
TOKEN=your_api_token TOKEN=your_api_token
SECRETS=path_to_Firebase_credentials_file FIREBASE_CREDENTIALS_FILE=path_to_Firebase_credentials_file
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,7 @@ COPY go.mod go.sum ./ ...@@ -13,7 +13,7 @@ COPY go.mod go.sum ./
COPY ../ ./ COPY ../ ./
# Build # Build
RUN CGO_ENABLED=0 GOOS=linux go test -c -installsuffix cgo -o test ./cmd/globeboard RUN CGO_ENABLED=0 GOOS=linux go test -cover -coverpkg=./... -c -installsuffix cgo -o test ./cmd/globeboard
# Use a minimal alpine image for the final build stage. # Use a minimal alpine image for the final build stage.
FROM golang:1.22-alpine FROM golang:1.22-alpine
......
...@@ -31,4 +31,4 @@ services: ...@@ -31,4 +31,4 @@ services:
secrets: secrets:
Firebase: Firebase:
file: ${SECRETS} file: ${FIREBASE_CREDENTIALS_FILE}
\ No newline at end of file \ No newline at end of file
# GlobeBoard Go REST API [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/license/mit/) # GlobeBoard Go REST API
![Text: GlobeBoard Go Rest API](./readme/go.jpg) ![Text: GlobeBoard Go Rest API](./readme/go.jpg)
## Introduction ## Introduction
[![pipeline status](https://git.gvk.idi.ntnu.no/Nintendo_Alex/globeboard_cicd/badges/main/pipeline.svg)](https://git.gvk.idi.ntnu.no/Nintendo_Alex/globeboard_cicd/-/commits/main)
[![coverage report](https://git.gvk.idi.ntnu.no/Nintendo_Alex/globeboard_cicd/badges/main/coverage.svg)](https://git.gvk.idi.ntnu.no/Nintendo_Alex/globeboard_cicd/-/commits/main)
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/license/mit/)
GlobeBoard Go REST API is a webapplication REST API service designed to provide GeoLocational Information. GlobeBoard Go REST API is a webapplication REST API service designed to provide GeoLocational Information.
## Author ## Author
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment