Merge pull request #6 from ted-gould/dependabot/go_modules/golang.org… #1
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.22' | |
| - name: Build project | |
| run: go build ./... | |
| # Add build steps here | |
| # For example: | |
| # - name: Build project | |
| # run: go build ./... | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.22' | |
| - name: Run tests | |
| run: go test ./... | |
| # Add test steps here | |
| # For example: | |
| # - name: Run tests | |
| # run: go test ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.22' | |
| - name: Install golangci-lint | |
| run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
| - name: Run golangci-lint | |
| run: | | |
| export PATH=$PATH:$(go env GOPATH)/bin | |
| golangci-lint run | |
| # Add linting steps here | |
| # For example: | |
| # - name: Lint code | |
| # run: golangci-lint run |