mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 16:22:39 +00:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Simulator
|
|
|
|
on:
|
|
# Triggers the workflow on any pull request and push to develop
|
|
push:
|
|
branches: [ develop ]
|
|
pull_request:
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- uses: actions/checkout@v2
|
|
|
|
# Cocoapods cache
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: Pods
|
|
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pods-
|
|
|
|
# Bundler cache
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: vendor/bundle
|
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gems-
|
|
|
|
|
|
- name: Bundle install
|
|
run: |
|
|
bundle config path vendor/bundle
|
|
bundle install --jobs 4 --retry 3
|
|
|
|
- name: Use right MatrixKit and MatrixSDK versions
|
|
run: bundle exec fastlane point_dependencies_to_pending_releases
|
|
|
|
- name: Build iOS simulator
|
|
run: bundle exec fastlane build
|
|
|
|
- name: Units tests
|
|
run: bundle exec fastlane test
|