Merge pull request #22 from jack-w-shaw/JUJU-4948_remove_unused_serie… #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Static Analysis" | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: Set up Go 1.14 | |
uses: actions/setup-go@v2.1.3 | |
with: | |
go-version: 1.14 | |
id: go | |
- name: Install Dependencies | |
run: | | |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.36.0 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download Dependencies | |
run: go mod download | |
- name: "Static Analysis" | |
run: | | |
make static-analysis | |
shell: bash |