From b518b18bf89f337abafbb8b7c79817026216346f Mon Sep 17 00:00:00 2001 From: Roman Pertl Date: Fri, 21 Apr 2023 23:59:58 +0200 Subject: [PATCH] feat(ci): adding lint to the pipeline --- .github/workflows/lint.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..b01c8f4 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,34 @@ +name: Run golint +on: + pull_request: + branches: + - 'main' + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@v3 + - uses: Jerome1337/golint-action@v1.0.2 + id: golint + with: + golint-path: './' + - name: Comment gollint output to pull request + uses: Beakyn/gha-comment-pull-request@v1.0.2 + if: always() + env: + GITHUB_TOKEN: ${{ github.token }} + with: + comment-message: | + ### Golint Output + Output: + ``` + # test + ${{steps.golint.outputs.golint-output}} + ``` + delete-previous-comment: true +