Skip to content

Commit a129727

Browse files
Add CI workflow and address PR feedback
- Create `.github/workflows/ci.yaml` for PR checks on main. - Remove vendor directory and related workflow step per PR feedback. - Update CI workflow to use `git status --porcelain` for uncommitted files check. - Ensure codebase is formatted and `go.sum` is updated.
1 parent bb4120c commit a129727

15 files changed

Lines changed: 5 additions & 7493 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
- name: Run go mod tidy
2323
run: go mod tidy
2424

25-
- name: Run go mod vendor
26-
run: go mod vendor
27-
2825
- name: Run gofumpt against code
2926
run: gofumpt -l -w .
3027

3128
- name: Ensure no modified or uncommitted files
3229
run: |
33-
git add .
34-
git diff --staged --exit-code
30+
if [ -n "$(git status --porcelain)" ]; then
31+
echo "Modified or uncommitted files found"
32+
git status --porcelain
33+
exit 1
34+
fi

vendor/golang.org/x/net/LICENSE

Lines changed: 0 additions & 27 deletions
This file was deleted.

vendor/golang.org/x/net/PATENTS

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)