docs: Added Contributing.md file to increase clo-monitor Score #157
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-go | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
go-fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: v1.17 | |
- name: Check gofmt | |
run: make -C src/service gofmt | |
go-sec: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: v1.17 | |
- name: Run Gosec Security Scanner | |
run: make -C src/service gosec | |
go-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- name: golangci-lint | |
with: | |
working-directory: src/service | |
args: --timeout=300s | |
uses: golangci/golangci-lint-action@v2 |