mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 18:36:34 +00:00
build(homebrew): reduce test duplication and add test coverage for macOS (#5331)
This commit is contained in:
@@ -177,7 +177,7 @@ jobs:
|
||||
- name: Validate Homebrew Formula
|
||||
id: test
|
||||
if: matrix.release != true
|
||||
uses: LizardByte/actions/actions/release_homebrew@200eaeb897a2b065a65cb6f16b41077432007490 # v2026.605.34721
|
||||
uses: LizardByte/actions/actions/release_homebrew@a46850981292c4bbc0c41715f286ad95adaaaf4a # v2026.625.20301
|
||||
with:
|
||||
actionlint_config: "---\n# empty config"
|
||||
formula_file: ${{ github.workspace }}/homebrew/sunshine.rb
|
||||
@@ -198,6 +198,7 @@ jobs:
|
||||
name: coverage-Homebrew-${{ matrix.os_name }}-${{ matrix.os_version }}
|
||||
path: |
|
||||
${{ steps.test.outputs.testpath }}/coverage.xml
|
||||
${{ steps.test.outputs.testpath }}/coverage.lcov
|
||||
${{ steps.test.outputs.testpath }}/tests/test_results.xml
|
||||
if-no-files-found: error
|
||||
|
||||
|
||||
@@ -218,13 +218,16 @@ jobs:
|
||||
coverage: true
|
||||
pr: true
|
||||
- name: Homebrew-macos-14
|
||||
coverage: false
|
||||
coverage: true
|
||||
coverage_file: coverage.lcov
|
||||
pr: true
|
||||
- name: Homebrew-macos-15
|
||||
coverage: false
|
||||
coverage: true
|
||||
coverage_file: coverage.lcov
|
||||
pr: true
|
||||
- name: Homebrew-macos-26
|
||||
coverage: false
|
||||
coverage: true
|
||||
coverage_file: coverage.lcov
|
||||
pr: true
|
||||
- name: Homebrew-ubuntu-24.04
|
||||
coverage: true
|
||||
@@ -264,7 +267,7 @@ jobs:
|
||||
with:
|
||||
disable_search: true
|
||||
fail_ci_if_error: true
|
||||
files: ./_coverage/coverage.xml
|
||||
files: ./_coverage/${{ matrix.coverage_file || 'coverage.xml' }}
|
||||
report_type: coverage
|
||||
flags: ${{ matrix.name }}
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
@@ -343,7 +346,7 @@ jobs:
|
||||
path: homebrew
|
||||
|
||||
- name: Upload Homebrew Beta Formula
|
||||
uses: LizardByte/actions/actions/release_homebrew@200eaeb897a2b065a65cb6f16b41077432007490 # v2026.605.34721
|
||||
uses: LizardByte/actions/actions/release_homebrew@a46850981292c4bbc0c41715f286ad95adaaaf4a # v2026.625.20301
|
||||
with:
|
||||
actionlint_config: "---\n# empty config"
|
||||
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
|
||||
|
||||
Reference in New Issue
Block a user