Skip to content

Commit 3c980d6

Browse files
authored
ci: update linting step and include prettier job in release workflow (#224)
* ci: bump version of `olangci-lint` for release workflow and add names to steps * ci: include `prettier` job in releases workflow
1 parent 41e3244 commit 3c980d6

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
golangci-lint:
5252
runs-on: ubuntu-latest
5353
steps:
54-
- uses: actions/checkout@v4
54+
- name: Checkout
55+
uses: actions/checkout@v4
5556
with:
5657
persist-credentials: false
5758

@@ -62,27 +63,42 @@ jobs:
6263
- name: Run golangci-lint
6364
uses: golangci/golangci-lint-action@v3
6465
with:
65-
version: v1.47
66+
version: v1.54
6667
go-fmt:
6768
runs-on: ubuntu-latest
6869
steps:
69-
- uses: actions/checkout@v4
70+
- name: Checkout
71+
uses: actions/checkout@v4
7072
with:
7173
persist-credentials: false
7274

7375
- run: make lint-with-go-fmt
76+
prettier:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Checkout
80+
uses: actions/checkout@v4
81+
with:
82+
persist-credentials: false
83+
84+
- uses: actions/setup-node@v3
85+
86+
- run: npx prettier --prose-wrap always --check .
87+
7488
goreleaser:
7589
runs-on: ubuntu-latest
7690
needs:
7791
- test-ubuntu
7892
- test-macos
7993
- test-windows
94+
- prettier
8095
- golangci-lint
8196
- go-fmt
8297
permissions:
8398
contents: write # to create a GitHub release (goreleaser/goreleaser-action)
8499
steps:
85-
- uses: actions/checkout@v4
100+
- name: Checkout
101+
uses: actions/checkout@v4
86102
- run: git fetch --prune --unshallow
87103
- uses: actions/setup-go@v4
88104
with:

0 commit comments

Comments
 (0)