From 82b910dd6d76c8734a124402faffe842ce17c22c Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sat, 27 Apr 2024 17:16:21 +1000 Subject: [PATCH] Fix pipeline tests --- .github/workflows/pr.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 145c156f6..f8403b703 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -72,25 +72,25 @@ jobs: go-version: ${{ matrix.go-version }} - name: Run tests (mac) | v2 - if: ${{ matrix.os == 'macos-latest' && github.base_ref == 'master' }} + if: ${{ matrix.os == 'macos-latest' && github.event.pull_request.base.ref == 'master' }} env: CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13 working-directory: ./v2 run: go test -v ./... - name: Run tests (!mac) | v2 - if: ${{ matrix.os != 'macos-latest' && github.base_ref == 'master' }} + if: ${{ matrix.os != 'macos-latest' && github.event.pull_request.base.ref == 'master' }} working-directory: ./v2 run: go test -v ./... - name: Run tests (mac) | v3 - if: ${{ matrix.os == 'macos-latest' && github.base_ref == 'v3-alpha' }} + if: ${{ matrix.os == 'macos-latest' && github.event.pull_request.base.ref == 'v3-alpha' }} env: CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13 working-directory: ./v3 run: go test -v ./... - name: Run tests (!mac) | v3 - if: ${{ matrix.os != 'macos-latest' && github.base_ref == 'v3-alpha' }} + if: ${{ matrix.os != 'macos-latest' && github.event.pull_request.base.ref == 'v3-alpha' }} working-directory: ./v3 run: go test -v ./...