File tree Expand file tree Collapse file tree 5 files changed +45
-4
lines changed
Expand file tree Collapse file tree 5 files changed +45
-4
lines changed Original file line number Diff line number Diff line change 1+ name : pre-commit
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ pre-commit :
8+ runs-on : ubuntu-latest
9+ container : golang:1.23-bookworm
10+ steps :
11+
12+ # Make pip3 work
13+ - name : Install Dependencies apt
14+ run : |
15+ apt update && \
16+ apt-get install -y python3 python3-pip python3-setuptools git wget python3-yaml python3-venv
17+
18+ - uses : actions/checkout@v2
19+
20+ # Install requirements and latest ansible
21+ - name : Install Dependencies pip
22+ run : |
23+ python3 -m venv ~/.venvs/vals
24+ ~/.venvs/vals/bin/pip3 install pre-commit
25+
26+ # Validate all files in the repo
27+ - name : Run pre-commit
28+ run : |
29+ git config --global --add safe.directory '/__w/axonops-developer-operator/axonops-developer-operator'
30+ ~/.venvs/vals/bin/pre-commit run --all-files -v || (cat /github/home/.cache/pre-commit/pre-commit.log && exit 1)
Original file line number Diff line number Diff line change 1+ ---
2+ repos :
3+ - repo : https://github.com/pre-commit/pre-commit-hooks
4+ rev : v4.1.0
5+ hooks :
6+ - id : trailing-whitespace
7+ - id : end-of-file-fixer
8+ - repo : https://github.com/dnephin/pre-commit-golang
9+ rev : v0.4.0
10+ hooks :
11+ - id : go-fmt
12+ - id : go-mod-tidy
Original file line number Diff line number Diff line change 9999 hosts:
100100 - axonops-dev.mydomain.com
101101` ` `
102-
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ require (
5656 go.uber.org/zap v1.26.0 // indirect
5757 golang.org/x/crypto v0.31.0 // indirect
5858 golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
59- golang.org/x/net v0.25 .0 // indirect
59+ golang.org/x/net v0.33 .0 // indirect
6060 golang.org/x/oauth2 v0.12.0 // indirect
6161 golang.org/x/sys v0.28.0 // indirect
6262 golang.org/x/term v0.27.0 // indirect
Original file line number Diff line number Diff line change @@ -142,8 +142,8 @@ golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR
142142golang.org/x/net v0.0.0-20190620200207-3b0461eec859 /go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s =
143143golang.org/x/net v0.0.0-20200226121028-0de0cce0169b /go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s =
144144golang.org/x/net v0.0.0-20201021035429-f5854403a974 /go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU =
145- golang.org/x/net v0.25 .0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac =
146- golang.org/x/net v0.25 .0 /go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM =
145+ golang.org/x/net v0.33 .0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I =
146+ golang.org/x/net v0.33 .0 /go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4 =
147147golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4 =
148148golang.org/x/oauth2 v0.12.0 /go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4 =
149149golang.org/x/sync v0.0.0-20190423024810-112230192c58 /go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM =
You can’t perform that action at this time.
0 commit comments