Enhance CI workflows: add scheduled triggers and improve CodeQL testing for multiple OS builds

This commit is contained in:
Cheikh Seck committed 2026-04-11 22:56:47 +00:00
1 parent 5f925e5831
commit a318f93edb
2 files changed
+11 -1

No files matched your search

+2
View File
@@ -8,6 +8,8 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * *'
jobs:
test:
+9 -1
View File
@@ -42,9 +42,17 @@ jobs:
run: |
set -euo pipefail
export CGO_ENABLED=0
pkgs=$(go list ./...)
for GOOS in linux windows darwin; do
echo "Building for $GOOS..."
GOOS=$GOOS GOARCH=amd64 go test ./...
if [ "$GOOS" = "linux" ]; then
GOOS=$GOOS GOARCH=amd64 go test ./...
continue
fi
for pkg in $pkgs; do
out="/tmp/$(echo "$pkg" | tr '/' '_').test"
GOOS=$GOOS GOARCH=amd64 go test -c -o "$out" "$pkg"
done
done
- name: Perform CodeQL Analysis