Skip to content

Commit

Permalink
ci: update linting step and include prettier job in release workflow (
Browse files Browse the repository at this point in the history
#224)

* ci: bump version of `olangci-lint` for release workflow and add names to steps

* ci: include `prettier` job in releases workflow
  • Loading branch information
G-Rath committed Sep 15, 2023
1 parent 41e3244 commit 3c980d6
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -51,7 +51,8 @@ jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -62,27 +63,42 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.47
version: v1.54
go-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- run: make lint-with-go-fmt
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-node@v3

- run: npx prettier --prose-wrap always --check .

goreleaser:
runs-on: ubuntu-latest
needs:
- test-ubuntu
- test-macos
- test-windows
- prettier
- golangci-lint
- go-fmt
permissions:
contents: write # to create a GitHub release (goreleaser/goreleaser-action)
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
- run: git fetch --prune --unshallow
- uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit 3c980d6

Please sign in to comment.