ci: minor cleanup (#1619)

* ci: minor cleanup

* add .golangci.yaml
This commit is contained in:
Kévin Dunglas
2025-05-31 08:01:38 +02:00
committed by GitHub
parent 340b1fd1c2
commit 6f049f9a9c
4 changed files with 9 additions and 10 deletions

View File

@@ -17,11 +17,6 @@ updates:
interval: weekly
commit-message:
prefix: chore(caddy)
# These packages must be in sync with versions
# used by github.com/caddyserver/caddy/v2
ignore:
- dependency-name: github.com/google/cel-go
- dependency-name: github.com/quic-go/*
groups:
go-modules:
patterns:

View File

@@ -23,8 +23,6 @@ jobs:
- name: Lint Code Base
uses: super-linter/super-linter/slim@v7.4.0
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
MARKDOWN_CONFIG_FILE: .markdown-lint.yaml

View File

@@ -15,6 +15,7 @@ permissions:
contents: read
env:
GOTOOLCHAIN: local
GOEXPERIMENT: cgocheck2
jobs:
tests-linux:
name: Tests (Linux, PHP ${{ matrix.php-versions }})
@@ -24,7 +25,6 @@ jobs:
matrix:
php-versions: ["8.2", "8.3", "8.4"]
env:
GOEXPERIMENT: cgocheck2
GOMAXPROCS: 10
LIBRARY_PATH: ${{ github.workspace }}/watcher/target/lib
steps:
@@ -46,7 +46,7 @@ jobs:
debug: true
- name: Install e-dant/watcher
uses: ./.github/actions/watcher
- name: Set Set CGO flags
- name: Set CGO flags
run: echo "CGO_CFLAGS=-I${PWD}/watcher/target/include $(php-config --includes)" >> "${GITHUB_ENV}"
- name: Build
run: go build
@@ -78,7 +78,6 @@ jobs:
name: Tests (macOS, PHP 8.4)
runs-on: macos-latest
env:
GOEXPERIMENT: cgocheck2
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- uses: actions/checkout@v4

7
.golangci.yaml Normal file
View File

@@ -0,0 +1,7 @@
---
version: "2"
run:
build-tags:
- nobadger
- nomysql
- nopgx