Skip to content

Add workflow to run unit tests on the CI #6

Add workflow to run unit tests on the CI

Add workflow to run unit tests on the CI #6

Workflow file for this run

name: Unit Tests
on:
pull_request:
branches: ['**']
paths-ignore:
- '*.md'
push:
branches: ['**']
paths-ignore:
- '*.md'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
prepare-dependencies:
name: Unit Tests
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install HomeBrew Packages
run: brew bundle check || brew bundle install --no-lock
shell: bash
env:
HOMEBREW_NO_AUTO_UPDATE: 1
- name: Prepare Ruby dependencies
run: |
bundle install
- name: Install CocoaPods depenedencies
run: |
cd Example && bundle exec pod install
- name: Run Unit Tests iOS
run: |
bundle exec fastlane unit_test
- name: Sanity build tvOS
if: success() || failure()
run: |
bundle exec fastlane build_tvos