From fca483a8ab29bcac0d4b8e0a936fbf6d1c293d8e Mon Sep 17 00:00:00 2001 From: Eugene Kalinin Date: Fri, 19 Nov 2021 17:10:07 +0300 Subject: [PATCH] Add pr checks via GH actions --- .github/workflows/pr.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..d40dae6 --- /dev/null +++ b/.github/workflows/pr.yml @@ -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