Add a step to check if the stream server is running #281
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: CI | |
on: # yamllint disable-line rule:truthy | |
push: | |
jobs: | |
# check-quality: | |
# name: π Check quality | |
# runs-on: macos-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# - name: Run the quality check | |
# run: make check-quality | |
tests: | |
name: π§ͺ Tests | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ios, tvos] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: make test-${{ matrix.platform }} | |
- name: Check server stream | |
run: | | |
echo "=================================" | |
nc -z localhost 8123 | |
echo "=================================" | |
- name: Publish report | |
uses: mikepenz/action-junit-report@v5 | |
if: always() | |
with: | |
report_paths: 'fastlane/test_output/*.xml' | |
check_name: π Unit test report (${{ matrix.platform }}) | |
fail_on_failure: true | |
# archive-demos: | |
# name: π¦ Archives | |
# runs-on: macos-latest | |
# strategy: | |
# matrix: | |
# platform: [ios, tvos] | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# - name: Add Apple certificate | |
# run: | | |
# Scripts/add-apple-certificate.sh \ | |
# $RUNNER_TEMP \ | |
# ${{ secrets.KEYCHAIN_PASSWORD }} \ | |
# ${{ secrets.APPLE_DEV_CERTIFICATE }} \ | |
# ${{ secrets.APPLE_DEV_CERTIFICATE_PASSWORD }} | |
# - name: Configure environment | |
# run: | | |
# Scripts/configure-environment.sh \ | |
# ${{ secrets.APP_STORE_CONNECT_API_KEY }} | |
# - name: Archive the demo | |
# run: make archive-demo-${{ matrix.platform }} | |
# env: | |
# TEAM_ID: ${{ secrets.TEAM_ID }} | |
# KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} | |
# KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }} | |
# TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }} |