Skip to content

feat: improve re-requests #4304

feat: improve re-requests

feat: improve re-requests #4304

name: Flutter Matrix Integration Test
on:
push:
branches: ["**"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Matrix Test on Linux
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Update apt-get
run: sudo apt-get update
- name: Install libraries
run: sudo apt-get install libgtk-3-dev cmake libolm3 cmake-doc ninja-build libsecret-1-dev libjsoncpp-dev libsecret-1-0 sqlite3 libsqlite3-dev keybinder-3.0 network-manager mpv libmpv-dev
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
- uses: hoverkraft-tech/[email protected]
with:
cwd: "integration_test/docker"
- name: Run Matrix integration tests
uses: GabrielBB/[email protected]
env:
SLOW_NETWORK: false
with:
working-directory: ./integration_test
run: |
chmod +x ./setup_toxiproxy_docker.sh ./run_matrix_tests.sh
./setup_toxiproxy_docker.sh
./run_matrix_tests.sh
test_degraded_network:
name: Matrix Test on Linux with degraded network
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Update apt-get
run: sudo apt-get update
- name: Install libraries
run: sudo apt-get install libgtk-3-dev cmake libolm3 cmake-doc ninja-build libsecret-1-dev libjsoncpp-dev libsecret-1-0 sqlite3 libsqlite3-dev keybinder-3.0 network-manager mpv libmpv-dev
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
- uses: hoverkraft-tech/[email protected]
with:
cwd: "integration_test/docker"
- name: Run Matrix integration tests (degraded)
uses: GabrielBB/[email protected]
env:
SLOW_NETWORK: true
with:
working-directory: ./integration_test
run: |
chmod +x ./setup_toxiproxy_docker.sh ./run_matrix_tests.sh
./setup_toxiproxy_docker.sh
./run_matrix_tests.sh