fix(deps): update module github.com/google/go-github/v69 to v69.2.0 #56
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: Lint and Test | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: # This allows manual triggering of the workflow | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# Set up Go environment with caching | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.24' | |
cache: true | |
# Install dependencies | |
- name: Install Dependencies | |
run: go mod download | |
# Install goimports (required by pre-commit hooks) | |
- name: Install goimports | |
run: go install golang.org/x/tools/cmd/goimports@latest | |
# Run pre-commit hooks | |
- name: Run Pre-Commit Hooks | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
# Run Go tests with coverage | |
- name: Run Go Tests | |
run: | | |
go install golang.org/x/tools/cmd/cover@latest | |
go test -cover -race -timeout=10m ./... | |
# Run golangci-lint for static analysis | |
- name: Run GolangCI-Lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest |