mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Fix v3 PR template
This commit is contained in:
parent
aa97009c35
commit
10002d892d
1 changed files with 23 additions and 7 deletions
|
|
@ -1,15 +1,30 @@
|
|||
name: Build + Test v3 alpha
|
||||
name: Build + Test v3
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [v3-alpha, v3/*, v3-*]
|
||||
paths-ignore:
|
||||
- '../../docs/**/*'
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
|
||||
jobs:
|
||||
check_approval:
|
||||
name: Check PR Approval
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
approved: ${{ steps.check.outputs.approved }}
|
||||
steps:
|
||||
- name: Check if PR is approved
|
||||
id: check
|
||||
run: |
|
||||
if [[ "${{ github.event.review.state }}" == "approved" || "${{ github.event.pull_request.approved }}" == "true" ]]; then
|
||||
echo "approved=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "approved=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
test_go:
|
||||
name: Run Go Tests
|
||||
needs: check_approval
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
@ -58,6 +73,7 @@ jobs:
|
|||
|
||||
test_js:
|
||||
name: Run JS Tests
|
||||
needs: check_approval
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -144,4 +160,4 @@ jobs:
|
|||
cd ./test-${{ matrix.template }}
|
||||
wails3 init -n ${{ matrix.template }} -t ${{ matrix.template }}
|
||||
cd ${{ matrix.template }}
|
||||
wails3 build
|
||||
wails3 build
|
||||
Loading…
Add table
Add a link
Reference in a new issue