Skip to content

Merge pull request #7 from sendinblue/CC-3396 #49

Merge pull request #7 from sendinblue/CC-3396

Merge pull request #7 from sendinblue/CC-3396 #49

Workflow file for this run

on: push
jobs:
ci:
runs-on: ubuntu-20.04
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.1'
- name: Run tests
run: go test ./...
- name: Fetch project module name
run: |
echo "::set-output name=MODULE_NAME::$(go mod edit -json | jq .Module.Path | tr -d '\"')"
id: project-module-name
- name: Code climate Coverage
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
debug: true
coverageCommand: go test -coverprofile=coverage.out ./...
prefix: ${{ steps.project-module-name.outputs.MODULE_NAME }}
coverageLocations: coverage.out:gocov
- name: Run Gosec Security Scanner
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go get github.com/securego/gosec/cmd/gosec
gosec ./...
- name: Run Golang Linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.45.2