element-ios/.github/workflows/simulator.yml

79 lines
2 KiB
YAML
Raw Normal View History

2021-03-19 17:50:39 +00:00
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
2021-04-20 14:55:38 +00:00
2021-03-19 17:50:39 +00:00
steps:
- uses: actions/checkout@v2
# Common cache
- uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Common setup
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
2021-03-19 17:50:39 +00:00
- name: Use right MatrixKit and MatrixSDK versions
run: bundle exec fastlane point_dependencies_to_pending_releases
# Main job
- name: Unit tests
run: bundle exec fastlane test
tests:
name: Tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Common cache
- uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Common setup
- 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
2021-04-20 14:55:38 +00:00
# Main job
- name: Unit tests
2021-04-20 14:55:38 +00:00
run: bundle exec fastlane test