feat: add title prop to MenuBarExtraView to allow displaying status title #39
Workflow file for this run
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Lint files | |
run: yarn lint | |
- name: Typecheck files | |
run: yarn typecheck | |
build-library: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build package | |
run: yarn prepack | |
build-macos: | |
runs-on: macos-latest | |
env: | |
TURBO_CACHE_DIR: .turbo/macos | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Cache turborepo for MacOS | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.TURBO_CACHE_DIR }} | |
key: ${{ runner.os }}-turborepo-macos-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-turborepo-macos- | |
- name: Check turborepo cache for MacOS | |
run: | | |
TURBO_CACHE_STATUS=$(node -p "($(yarn --silent turbo run build:macos --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:macos').cache.status") | |
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then | |
echo "turbo_cache_hit=1" >> $GITHUB_ENV | |
fi | |
- name: Cache cocoapods | |
if: env.turbo_cache_hit != 1 | |
id: cocoapods-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
**/macos/Pods | |
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/macos/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cocoapods- | |
- name: Install cocoapods | |
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true' | |
run: | | |
yarn example pods | |
env: | |
NO_FLIPPER: 1 | |
- name: Build example for MacOS | |
run: | | |
yarn turbo run build:macos --cache-dir="${{ env.TURBO_CACHE_DIR }}" |