diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1176164..e947f43 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,10 @@ jobs: args: --verbose test-unit: - runs-on: ubuntu-20.04 + strategy: + matrix: + os: [ ubuntu-20,04, macos-14 ] + runs-on: ${{ matrix.os }} timeout-minutes: 20 steps: - uses: actions/setup-go@v5 diff --git a/logrotate_freebsd.go b/logrotate_freebsd.go deleted file mode 100644 index dc8d614..0000000 --- a/logrotate_freebsd.go +++ /dev/null @@ -1,9 +0,0 @@ -package logrotate - -import ( - "os" -) - -func chown(_ string, _ os.FileInfo) error { - return nil -} diff --git a/logrotate_linux.go b/logrotate_unix.go similarity index 94% rename from logrotate_linux.go rename to logrotate_unix.go index 249fa90..20062cc 100644 --- a/logrotate_linux.go +++ b/logrotate_unix.go @@ -1,3 +1,5 @@ +//go:build !windows + package logrotate import (