Skip to content

Add a workflow to check doc update #173

Add a workflow to check doc update

Add a workflow to check doc update #173

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Go vet
run: go vet ./...
- name: Run Gosec
uses: securego/gosec@master
with:
args: ./...
- name: Go fix
run: go fix ./...
- name: Go build
run: go build -v ./...
- name: Go test
run: go test -v -coverprofile=coverage.out ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}