Skip to content

Commit b3bb856

Browse files
committed
Skip Go tests on sponsor image PRs
1 parent 2936e8b commit b3bb856

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/pr-master.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ jobs:
5959
name: Run Go Tests
6060
runs-on: ${{ matrix.os }}
6161
if: >
62+
github.event.pull_request.head.ref != 'update-sponsors' &&
6263
github.event.review.state == 'approved' &&
6364
github.repository == 'wailsapp/wails' &&
64-
github.base_ref == 'master' &&
65-
github.head_ref != 'update-sponsors'
65+
github.base_ref == 'master'
6666
strategy:
6767
matrix:
6868
os: [ubuntu-22.04, windows-latest, macos-latest, ubuntu-24.04]
@@ -101,3 +101,15 @@ jobs:
101101
if: matrix.os == 'ubuntu-24.04'
102102
working-directory: ./v2
103103
run: go test -v -tags webkit2_41 ./...
104+
105+
# This job will run instead of test_go for the update-sponsors branch
106+
skip_tests:
107+
name: Skip Tests (Sponsor Update)
108+
if: github.event.pull_request.head.ref == 'update-sponsors'
109+
runs-on: ubuntu-latest
110+
steps:
111+
- name: Skip tests for sponsor updates
112+
run: |
113+
echo "Skipping tests for sponsor update branch"
114+
echo "This is an automated update of the sponsors image."
115+
continue-on-error: true

0 commit comments

Comments
 (0)