diff --git a/.github/workflows/go-pr.yaml b/.github/workflows/go-pr.yaml index ce00133..0755334 100644 --- a/.github/workflows/go-pr.yaml +++ b/.github/workflows/go-pr.yaml @@ -34,6 +34,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + lfs: ${{ inputs.lfs }} - name: Run workflow prepare script shell: bash @@ -66,6 +67,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + lfs: ${{ inputs.lfs }} - name: Run workflow prepare script shell: bash @@ -154,6 +156,38 @@ jobs: category: gosec continue-on-error: true + goreleaser-check: + name: GoReleaser Config Validation + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + lfs: ${{ inputs.lfs }} + + - name: Run workflow prepare script + shell: bash + run: | + if [ -f "./workflow-prepare.sh" ]; then + chmod +x ./workflow-prepare.sh + ./workflow-prepare.sh + fi + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: ${{ inputs.go-version }} + cache: true + + - name: Check goreleaser config + if: hashFiles('.goreleaser.yml', '.goreleaser.yaml') != '' + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "~> v2" + args: check + codeql: name: CodeQL Analysis runs-on: ubuntu-latest