-
Notifications
You must be signed in to change notification settings - Fork 216
120 lines (102 loc) · 3.23 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Nightly checks
on:
# schedule:
# - cron: '0 3 * * 1-5'
workflow_dispatch:
jobs:
unit-tests:
name: Unit Tests with sanitizer checks
runs-on: macos-13
steps:
- uses: actions/checkout@v2
# Cache for Xcode env
- 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-
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
# Main step
- name: Unit tests
run: bundle exec fastlane test testplan:UnitTestsWithSanitizers
# Store artifacts
- uses: actions/upload-artifact@v2
with:
name: report.html
path: build/test/report.html
- uses: actions/upload-artifact@v2
with:
name: report.junit
path: build/test/report.junit
- uses: actions/upload-artifact@v2
with:
name: MatrixSDK-macOS.xcresult
path: build/test/MatrixSDK-macOS.xcresult/
integration-tests:
name: Integration Tests (Synapse) with sanitizer checks
runs-on: macos-11
steps:
- uses: actions/checkout@v2
# Cache for python env for Synapse
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
# Cache for Xcode env
- 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-
- name: Start synapse server
run: |
python3 -m venv .synapse
source .synapse/bin/activate
pip install synapse matrix-synapse
curl -sL https://raw.githubusercontent.com/matrix-org/synapse/develop/demo/start.sh \
| sed s/127.0.0.1/0.0.0.0/g | bash -s -- "--no-rate-limit"
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
# Main step
- name: Integration tests
run: bundle exec fastlane test testplan:AllTestsWithSanitizers
# Store artifacts
- uses: actions/upload-artifact@v2
with:
name: report.html
path: build/test/report.html
- uses: actions/upload-artifact@v2
with:
name: report.junit
path: build/test/report.junit
- uses: actions/upload-artifact@v2
with:
name: MatrixSDK-macOS.xcresult
path: build/test/MatrixSDK-macOS.xcresult/