mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
1c8957866e
We use a local version of the MatrixKit podspec, MatrixKit.edited.podspec. This creates an issue in the computation of Podfile.lock. MatrixKit is not associated to a commit. `pod install` will be happy with its marketing version. It will not try to update if this marketing version matches with the one in the cache.
So delete the MatrixKit pod cache.
Generated Podfile.lock:
```
...
EXTERNAL SOURCES:
MatrixKit:
:podspec: MatrixKit.edited.podspec
MatrixSDK:
:branch: manu/test_ci_2
https://github.com/matrix-org/matrix-ios-sdk.git
CHECKOUT OPTIONS:
MatrixSDK:
:commit: 32614df19df3ef43e77f25a06ddb0b04e910f90b
https://github.com/matrix-org/matrix-ios-sdk.git
...
```
95 lines
2.7 KiB
YAML
95 lines
2.7 KiB
YAML
name: CI
|
|
|
|
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:
|
|
|
|
env:
|
|
# Make the git branch for a PR available to our Fastfile
|
|
MX_GIT_BRANCH: ${{ github.event.pull_request.head.ref }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# Common cache
|
|
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
|
|
- 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-
|
|
|
|
# Make sure we use the latest version of MatrixKit
|
|
- name: Reset MatrixKit pod
|
|
run: rm -rf Pods/MatrixKit
|
|
|
|
# Common setup
|
|
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
|
|
- 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_related_branches
|
|
|
|
# Main step
|
|
- name: Build iOS simulator
|
|
run: bundle exec fastlane build
|
|
|
|
|
|
tests:
|
|
name: Tests
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# Common cache
|
|
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
|
|
- 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-
|
|
|
|
# Make sure we use the latest version of MatrixKit
|
|
- name: Reset MatrixKit pod
|
|
run: rm -rf Pods/MatrixKit
|
|
|
|
# Common setup
|
|
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
|
|
- 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_related_branches
|
|
|
|
# Main step
|
|
- name: Unit tests
|
|
run: bundle exec fastlane test
|