diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-29 17:19:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-29 17:19:38 +0300 |
| commit | ad9ef7be2853679515c989cb8c890502e68cbffb (patch) | |
| tree | f77b0167ac679dba66995b2a756cc66a2c4d2c5d | |
| parent | e344b94d455712d9e753ef235bc6ff0e76fd91f2 (diff) | |
fix(yq): gate vet/lint in CI and drop redundant Sprintf
| -rw-r--r-- | .github/workflows/ci.yml | 33 | ||||
| -rw-r--r-- | internal/github/github.go | 2 |
2 files changed, 34 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9c11904 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + pull_request: + push: + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache: true + + - name: Install tooling + run: | + echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + go install github.com/magefile/mage@v1.15.0 + go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + + - name: Gate vet + run: mage vet + + - name: Gate lint + run: mage lint + + - name: Gate tests + run: mage test diff --git a/internal/github/github.go b/internal/github/github.go index 66e0f67..a05d09f 100644 --- a/internal/github/github.go +++ b/internal/github/github.go @@ -138,7 +138,7 @@ func (c *Client) CreateRepo(repoName, description string, private bool) error { return nil } - url := fmt.Sprintf("https://api.github.com/user/repos") + url := "https://api.github.com/user/repos" reqBody := CreateRepoRequest{ Name: repoName, |
