airserver #2823
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: airserver | |
on: | |
pull_request: # Automatic test | |
types: [opened, reopened, synchronize] | |
branches: [master] | |
paths: | |
- .github/workflows/.common.yml | |
- .github/workflows/airserver.yml | |
- airserver/** | |
- Common.ps1 | |
# - test.ps1 | |
- update_all.ps1 | |
schedule: | |
- cron: 0 4 * * * # Scheduled test | |
- cron: 5 0-23/6 * * * # Scheduled update | |
workflow_dispatch: # Manual run | |
inputs: | |
type: | |
description: Type | |
type: choice | |
required: true | |
default: Test | |
options: | |
- Force update | |
- Test | |
- Update | |
jobs: | |
job: | |
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }} | |
uses: ./.github/workflows/.common.yml | |
with: | |
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }} | |
force: ${{ inputs.type == 'Force update' }} | |
# AirServer requires Wireless-Networking, feature not installed on GitHub agents. | |
# Tests and uninstall can't pass. | |
# test_cases: | | |
# - Start program | |
# Start-Program "AirServer Universal*" -Shortcut -ProcessName AirServer | |
# - Close program | |
# Close-Program AirServer | |
uninstall: false | |
secrets: inherit |