Skip to content

Commit 10002d8

Browse files
committed
Fix v3 PR template
1 parent aa97009 commit 10002d8

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/build-and-test-alpha.yml renamed to .github/workflows/build-and-test-v3.yml

+23-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
name: Build + Test v3 alpha
1+
name: Build + Test v3
22

33
on:
4-
push:
5-
branches: [v3-alpha, v3/*, v3-*]
6-
paths-ignore:
7-
- '../../docs/**/*'
8-
workflow_dispatch:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
pull_request_review:
7+
types: [submitted]
98

109
jobs:
10+
check_approval:
11+
name: Check PR Approval
12+
runs-on: ubuntu-latest
13+
outputs:
14+
approved: ${{ steps.check.outputs.approved }}
15+
steps:
16+
- name: Check if PR is approved
17+
id: check
18+
run: |
19+
if [[ "${{ github.event.review.state }}" == "approved" || "${{ github.event.pull_request.approved }}" == "true" ]]; then
20+
echo "approved=true" >> $GITHUB_OUTPUT
21+
else
22+
echo "approved=false" >> $GITHUB_OUTPUT
23+
fi
24+
1125
test_go:
1226
name: Run Go Tests
27+
needs: check_approval
1328
runs-on: ${{ matrix.os }}
1429
strategy:
1530
fail-fast: false
@@ -58,6 +73,7 @@ jobs:
5873

5974
test_js:
6075
name: Run JS Tests
76+
needs: check_approval
6177
runs-on: ubuntu-latest
6278
strategy:
6379
matrix:
@@ -144,4 +160,4 @@ jobs:
144160
cd ./test-${{ matrix.template }}
145161
wails3 init -n ${{ matrix.template }} -t ${{ matrix.template }}
146162
cd ${{ matrix.template }}
147-
wails3 build
163+
wails3 build

0 commit comments

Comments
 (0)