Skip to content

Commit

Permalink
Add pr checks via GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Nov 19, 2021
1 parent 0c793ab commit fca483a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PR checks

on:
pull_request:
branches: [ master ]

jobs:

build:
name: Build, Test, Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Lint
uses: golangci/golangci-lint-action@v2

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
language: 'go'

- name: CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit fca483a

Please sign in to comment.