fix(projects): resolve linting issues #27
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 Pipeline | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/[email protected] | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: "go.mod" | |
| cache: true | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Running Linter | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: v1.60 | |
| args: --timeout=5m | |
| - name: Check Formatting | |
| run: test -z "$(gofmt -s -l -e .)" | |
| - name: Running Tests | |
| run: make test |