Skip to content

feature:Setting up CodeQL analysis #1

feature:Setting up CodeQL analysis

feature:Setting up CodeQL analysis #1

Workflow file for this run

name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
code_cov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.16'
- name: Run tests and generate coverage report
run: |
go test -coverprofile=coverage.out -gcflags="all=-l -N" $(go list ./...) -short
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: coverage.out