Skip to content

test

test #75

Workflow file for this run

name: test
on:
push:
branches:
- main
- master
- develop
- ci
pull_request: # any pull request against any branch
workflow_dispatch: # manual trigger
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# * * * * *
- cron: "0 15 * * *" # every day at 15:00 UTC (7:00 PST, 8:00 PDT)
env:
TERM: xterm-256color
DEVELOPER_DIR: /Applications/Xcode_${{ vars.XCODE_VERSION }}.app/Contents/Developer
jobs:
test-codecov:
name: Test (macOS)
runs-on: ${{ vars.MACOS }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Bootstrap
uses: ./.github/actions/bootstrap
- name: Test with Codecov
run: make test-codecov -C ChouTiUI
- name: Upload code coverage
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ChouTiUI/.build/debug/codecov/coverage.lcov
disable_search: true
flags: ChouTiUI
name: ChouTiUI
fail_ci_if_error: true
test:
name: Test
strategy:
fail-fast: false
matrix:
platform: [iOS, tvOS] # disable `visionOS` for now as it hangs on GitHub Actions
timeout-minutes: 30
runs-on: ${{ vars.MACOS }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Bootstrap
uses: ./.github/actions/bootstrap
# - name: Download visionOS simulator
# if: matrix.platform == 'visionOS'
# run: xcodebuild -downloadPlatform visionOS
- name: Test
run: make test-${{ matrix.platform }} -C ChouTiUI