From fff6d339b8fc24cea70f143b4b9e6822653102ff Mon Sep 17 00:00:00 2001 From: Juris Bune Date: Mon, 26 Feb 2024 16:08:51 +0200 Subject: [PATCH] Revert "Retire golangci-lint-action since it's buggy" This reverts commit 90e39d71824b253a7294f2d0150907e97a70b4b2. --- .github/workflows/ci.yaml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 18b6434..27720dd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,23 @@ permissions: contents: write jobs: + lint: + name: Static code analysis + runs-on: ubuntu-latest + steps: + - name: Checkout source tree + uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version + version: latest + build: name: Build and test strategy: @@ -88,11 +105,6 @@ jobs: bash -x ./build.sh clean bash -x ./build.sh test - - name: Lint - run: | - export PATH="$FFMPEG_DEST_DIR":$PATH - bash -x ./build.sh lint - - name: Build id: build run: |