fix(ts): Fix type inference in useTrackPlayerEvents #1061
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: platform-validation | |
on: | |
push: | |
branches: [main] | |
paths-ignore: ['docs/**'] | |
pull_request: | |
branches: [main, 'feature/**'] | |
paths-ignore: ['docs/**'] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Install Library Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build Library | |
run: yarn build | |
- name: Install Mobile Dependencies | |
run: |- | |
cd example | |
yarn install | |
- name: Cache Gradle Wrapper | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }} | |
- name: Cache Gradle Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle-caches- | |
- name: Build App | |
run: |- | |
cd example/android | |
./gradlew assembleDebug --no-daemon | |
build-ios: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1.0' | |
bundler-cache: false | |
- name: Install Library Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build Library | |
run: yarn build | |
- name: Install Example Dependencies | |
run: |- | |
cd example | |
yarn install --frozen-lockfile | |
- name: Bundler | |
run: |- | |
cd example/ios | |
bundle install | |
- name: Cache Cocoapods Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: example/ios/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Cococapods | |
run: |- | |
cd example/ios | |
bundle exec pod install | |
- name: Build App | |
run: |- | |
cd example/ios | |
xcodebuild build -workspace RNTPExample.xcworkspace -scheme RNTPExample -destination 'platform=iOS Simulator,name=iPhone 12 Pro' | |
check-typescript: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: |- | |
yarn install --frozen-lockfile | |
- name: Install Example Dependencies | |
run: |- | |
cd example | |
yarn install --frozen-lockfile | |
- name: Check Lint, Format & Types | |
run: | | |
yarn run ci:lint | |
yarn run ci:format | |
yarn run types | |
- name: Example - Check Lint, Format & Types | |
run: | | |
cd example | |
yarn run ci:lint | |
yarn run ci:format | |
yarn run types |