Skip to content

Created codeql.yml for code scanning #28

Created codeql.yml for code scanning

Created codeql.yml for code scanning #28

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
defaults:
run:
working-directory: go
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: go get -v -t -d ./...
- name: Get golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.39.0
- name: Lint
run: $(go env GOPATH)/bin/golangci-lint run --timeout 3m0s ./...