mirror of
https://github.com/cheikh2shift/godex.git
synced 2026-10-19 01:29:53 -05:00
Enhance CI workflows: add scheduled triggers and improve CodeQL testing for multiple OS builds
This commit is contained in:
1 parent
5f925e5831
commit
a318f93edb
2 files changed
+11
-1
No files matched your search
@@ -8,6 +8,8 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user