Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Update README.md

Update README.md #92

Workflow file for this run

name: Go
on:
push:
branches: [ "main", "dev"]
pull_request:
branches: [ "main", "dev"]
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
mysql:
image: mysql
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test
run: |
go test ./... -v -coverprofile profile.cov -coverpkg=./...
go tool cover -func profile.cov
- name: Send coverage to coveralls
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
parallel: true
- name: Send coverage to CodeClimate
uses: paambaati/codeclimate-action@v2.7.4
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
debug: true
coverageLocations: profile.cov:gocov
prefix: github.com/vikash/gofr
code_quality:
name: Code Quality
runs-on: ubuntu-latest
container: golangci/golangci-lint:v1.37.1
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: golangci-lint
run: |
golangci-lint run