From bf0322523c0c85632db93986f42004097d8c7574 Mon Sep 17 00:00:00 2001 From: Paulius J Date: Tue, 5 Sep 2023 11:13:51 +0200 Subject: [PATCH] fix gha, test tweak for osx --- .github/workflows/build.yml | 4 ++-- ioutilx/copy_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 411ae30..965d093 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Lint uses: golangci/golangci-lint-action@v3 @@ -19,7 +19,7 @@ jobs: env: GORACE: history_size=4 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 diff --git a/ioutilx/copy_test.go b/ioutilx/copy_test.go index f85493e..55b412c 100644 --- a/ioutilx/copy_test.go +++ b/ioutilx/copy_test.go @@ -298,7 +298,7 @@ func TestCopyTree(t *testing.T) { }) t.Run("permission", func(t *testing.T) { err := CopyTree("test", "/cant/write/here", nil) - if !test.ErrorContains(err, "permission denied") { + if !test.ErrorContains(err, "permission denied") && !test.ErrorContains(err, "read-only file system") { t.Error(err) } })