Skip to content

Commit c84aa93

Browse files
committed
Add go.mod checks
Signed-off-by: Yuri Shkuro <[email protected]>
1 parent 85dae6f commit c84aa93

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/ci-lint-test.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,35 @@ jobs:
2020
generated-files-check:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
24-
with:
25-
egress-policy: audit
26-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
23+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
2724
with:
2825
submodules: recursive
2926
- name: Verify Protobuf types are up to date
3027
run: make proto && { if git status --porcelain | grep '??'; then exit 1; else git diff --name-status --exit-code; fi }
3128

32-
- name: Verify Thrift types are up to date
29+
- name: Verify Thrift types are up to date
3330
run: make thrift && { if git status --porcelain | grep '??'; then exit 1; else git diff --name-status --exit-code; fi }
3431

32+
go-mod-tidy-check:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
36+
- name: Verify go.mod files are up to date
37+
run: |
38+
go mod tidy && \
39+
(cd internal/tools && go mod tidy) && \
40+
{ if git status --porcelain | grep '??'; then exit 1; else git diff --name-status --exit-code; fi }
41+
3542
lint:
3643
runs-on: ubuntu-latest
3744
steps:
3845
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
3946
with:
4047
egress-policy: audit
41-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
48+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4249
- uses: actions/setup-python@v5
4350
with:
4451
python-version: '3.x'
4552
- name: Run lint checks
4653
run: |
4754
make lint
48-
49-
50-
51-
52-

0 commit comments

Comments
 (0)