mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
- CI: Included tests for CI builds
This commit is contained in:
21
.github/workflows/reusable-build-workflow.yml
vendored
21
.github/workflows/reusable-build-workflow.yml
vendored
@@ -66,8 +66,10 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install dependencies - ldid & xcbeautify
|
||||
run: brew install ldid xcbeautify
|
||||
- name: Install dependencies - ldid & xcbeautify & xcpretty
|
||||
run: |
|
||||
brew install ldid xcbeautify
|
||||
gem install xcpretty # for test reports
|
||||
|
||||
- name: Set ref based on is_shared_build_num
|
||||
if: ${{ inputs.is_beta }}
|
||||
@@ -226,10 +228,17 @@ jobs:
|
||||
run: |
|
||||
echo "BUNDLE_ID_SUFFIX=${{ inputs.bundle_id_suffix }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build SideStore
|
||||
- name: Build and run SideStore Tests
|
||||
# using 'tee' to intercept stdout and log for detailed build-log
|
||||
run: |
|
||||
NSUnbufferedIO=YES make boot-sim build-and-test 2>&1 | tee build.log | xcpretty -r junit --output ./build/tests/test-results.xml && exit ${PIPESTATUS[0]}
|
||||
echo "--------------------------------------------------------------------" >> build.log
|
||||
|
||||
- name: Build SideStore archive
|
||||
# using 'tee' to intercept stdout and log for detailed build-log
|
||||
run: |
|
||||
NSUnbufferedIO=YES make build 2>&1 | tee build.log | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
|
||||
echo "--------------------------------------------------------------------" >> build.log
|
||||
|
||||
- name: Fakesign app
|
||||
run: make fakesign | tee -a build.log
|
||||
@@ -329,6 +338,12 @@ jobs:
|
||||
name: SideStore-${{ steps.version.outputs.version }}-dSYM
|
||||
path: ./SideStore.xcarchive/dSYMs/*
|
||||
|
||||
- name: Upload Test Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: test-results-${{ steps.version.outputs.version }}.zip
|
||||
path: ./build/tests/*
|
||||
|
||||
- name: Upload encrypted-build_log.zip
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -63,4 +63,8 @@ SideStore/.skip-prebuilt-fetch-em_proxy
|
||||
# Never check-in this package.resolved file
|
||||
# coz SPM then resolves packages using the stale entries in this file
|
||||
*.xcodeproj/**/Package.resolved
|
||||
*.xcworkspace/**/Package.resolved
|
||||
*.xcworkspace/**/Package.resolved
|
||||
|
||||
# build/test artifacts
|
||||
build.log
|
||||
report.html
|
||||
|
||||
Reference in New Issue
Block a user