chore: use Famedly runners

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
TheOneWithTheBraid 2022-11-28 07:12:40 +01:00
commit 78bfe2dec7
13 changed files with 118 additions and 77 deletions

View file

@ -41,8 +41,8 @@ void main() {
final inputs = find.byType(TextField);
await tester.enterText(inputs.first, Users.alice.name);
await tester.enterText(inputs.last, Users.alice.password);
await tester.enterText(inputs.first, Users.user1.name);
await tester.enterText(inputs.last, Users.user1.password);
await tester.testTextInput.receiveAction(TextInputAction.done);
});
});

View file

@ -297,7 +297,7 @@ listeners:
# If you plan to use a reverse proxy, please see
# https://matrix-org.github.io/synapse/latest/reverse_proxy.html.
#
- port: 8008
- port: 80
tls: false
type: http
x_forwarded: false

View file

@ -1,8 +1,16 @@
import 'dart:io';
abstract class Users {
const Users._();
static const alice = User('alice', 'AliceInWonderland');
static const bob = User('bob', 'JoWirSchaffenDas');
static const trudy = User('trudy', 'HaveIBeenPwned');
static final user1 = User(
Platform.environment['USER1_NAME'] ?? 'alice',
Platform.environment['USER1_PW'] ?? 'AliceInWonderland',
);
static final user2 = User(
Platform.environment['USER2_NAME'] ?? 'bob',
Platform.environment['USER2_PW'] ?? 'JoWirSchaffenDas',
);
}
class User {
@ -12,5 +20,5 @@ class User {
const User(this.name, this.password);
}
// https://stackoverflow.com/a/33088657
const homeserver = 'http://10.0.2.2:8008';
final homeserver =
'http://${Platform.environment['HOMESERVER'] ?? 'localhost'}';