Skip to content

Go

Go #842

Workflow file for this run

name: Go
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
client-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.18"
- name: Run Go generators
run: go generate ./.../gen
- name: Build Go
run: go build ./...
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run Go tests
run: gotestsum
client-scan:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: securego/gosec@master
with:
args: ./...
client-lint:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Go
uses: keep-network/golint-action@v1.0.2