Skip to content

Commit 570df5a

Browse files
committed
ci: run Matrix integration test in GitHub Actions
1 parent ba77d0e commit 570df5a

File tree

6 files changed

+36
-7
lines changed

6 files changed

+36
-7
lines changed

.github/workflows/archive/build-android.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: macOS-latest
88
if: github.ref == 'refs/heads/master'
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 1
1313
- name: Prepare java

.github/workflows/archive/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
lein: 2.9.1
2222
- name: Check leiningen version
2323
run: lein -v
24-
- uses: actions/checkout@v1
24+
- uses: actions/checkout@v3
2525
with:
2626
fetch-depth: 1
2727
- uses: actions/setup-node@v1
@@ -44,7 +44,7 @@ jobs:
4444
name: Build & Release macOS
4545
runs-on: macOS-latest
4646
steps:
47-
- uses: actions/checkout@v1
47+
- uses: actions/checkout@v3
4848
with:
4949
fetch-depth: 1
5050
- name: Retrieve certificate
@@ -98,7 +98,7 @@ jobs:
9898
name: Build & Release Windows
9999
runs-on: windows-latest
100100
steps:
101-
- uses: actions/checkout@v1
101+
- uses: actions/checkout@v3
102102
with:
103103
fetch-depth: 1
104104
- name: Prepare java

.github/workflows/archive/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
lein: 2.9.1
2323
- name: Check leiningen version
2424
run: lein -v
25-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v3
2626
with:
2727
fetch-depth: 1
2828
- uses: actions/setup-node@v1

.github/workflows/archive/testflight-ios.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: macOS-latest
88
if: github.ref == 'refs/heads/ios-release'
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 1
1313
- uses: webfactory/[email protected]
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Flutter Matrix Test
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
test:
10+
name: Flutter Matrix Test on Linux
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Update apt-get
14+
run: sudo apt-get update
15+
- name: Install libraries
16+
run: sudo apt-get install libgtk-3-dev cmake cmake-doc ninja-build libsecret-1-dev libjsoncpp-dev libsecret-1-0 sqlite3 libsqlite3-dev keybinder-3.0 network-manager mpv libmpv-dev
17+
- uses: actions/checkout@v3
18+
- uses: GabrielBB/[email protected]
19+
- uses: kuhnroyal/flutter-fvm-config-action@v2
20+
id: fvm-config-action
21+
- uses: subosito/flutter-action@v2
22+
with:
23+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
24+
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
25+
- uses: hoverkraft-tech/[email protected]
26+
with:
27+
cwd: "integration_test/docker"
28+
- name: Run Matrix integration test
29+
run: ./integration_test/run_matrix_tests.sh

integration_test/run_matrix_tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ docker compose exec dendrite create-account -config dendrite.yaml -username "$TE
1414
cd - > /dev/null || exit
1515
cd ..
1616

17-
fvm flutter test integration_test/matrix_service_test.dart \
17+
flutter test integration_test/matrix_service_test.dart \
1818
--dart-define=TEST_USER1="@$TEST_USER1:localhost" \
1919
--dart-define=TEST_USER2="@$TEST_USER2:localhost" \
2020
--dart-define=SLOW_NETWORK="$SLOW_NETWORK"

0 commit comments

Comments
 (0)