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