Merge pull request #56 from troyhantech/ht/dev #59
This file contains hidden or 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: Go | |
| on: | |
| push: | |
| branches: [ "master", "develop" ] | |
| pull_request: | |
| branches: [ "master", "develop" ] | |
| jobs: | |
| lint-and-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: lint | |
| uses: golangci/golangci-lint-action@v3.1.0 | |
| with: | |
| working-directory: . | |
| # Pin golangci-lint to a pre-1.49 version to avoid deprecated/removed linters in current .golangci.yml | |
| version: v1.48.0 | |
| # Avoid deprecated output format warning | |
| args: --out-format=colored-line-number | |
| skip-build-cache: true | |
| skip-pkg-cache: true | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: 1.18 | |
| - name: Build | |
| run: go build -v ./ |