Quellcode durchsuchen

fix(ci): add golangci-lint step and PKGBUILD build flags

Add golangci-lint-action to CI workflow (Linux x64 only) after
the Test step. Update PKGBUILD build command to include -trimpath
and -ldflags=-s flags matching the CI build step.

Resolves COMP #18 (linter in CI) and COMP #19 (PKGBUILD flags).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
claude vor 1 Monat
Ursprung
Commit
a7b8d08f6d
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 6 0
      .github/workflows/ci.yml
  2. 1 1
      PKGBUILD

+ 6 - 0
.github/workflows/ci.yml

@@ -31,6 +31,12 @@ jobs:
       - name: Test
         run: go test -v ./...
 
+      - name: Lint
+        if: runner.os == 'Linux' && runner.arch == 'X64'
+        uses: golangci/golangci-lint-action@v8
+        with:
+          version: latest
+
       - name: Build
         run: go build -trimpath -ldflags=-s -o discordo-plus .
 

+ 1 - 1
PKGBUILD

@@ -9,7 +9,7 @@ options=('!debug')
 
 build() {
   cd "$startdir"
-  go build -o discordo-plus .
+  go build -trimpath -ldflags=-s -o discordo-plus .
 }
 
 package() {