Skip to content

Commit 43ce697

Browse files
committed
ci: update github pr workflow
ci: run lint on all base branch prs ci: reorder steps
1 parent 1ae45ed commit 43ce697

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/pr.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Go Lint
22
on:
33
pull_request:
4-
branches:
5-
- develop
6-
- release/**
74

85
permissions:
96
contents: read
@@ -20,11 +17,7 @@ jobs:
2017
go-version: 1.24
2118

2219
- name: Get dependencies
23-
run: |
24-
set -eo pipefail
25-
go mod tidy && git diff --exit-code
26-
go mod download
27-
go mod verify
20+
run: go mod download
2821

2922
- name: Cache Go dependencies
3023
uses: actions/cache@v4
@@ -71,6 +64,9 @@ jobs:
7164
run: |
7265
make lint-panics
7366
67+
- name: go mod tidy
68+
run: go mod tidy && git diff --exit-code
69+
7470
migration-check:
7571
name: Check SQL migrations order
7672
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)