From 3c980d66ce96584373015f39f46650aba698e063 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 15 Sep 2023 16:37:40 +1200 Subject: [PATCH] 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 --- .github/workflows/release.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e03d89..0a4a5ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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: