Commit Graph

165 Commits

Author SHA1 Message Date
Anbraten
03edc197d3
fix desktop app releasing (#2116)
* fix app releasing

* fix sed for macos

* fix setting app version on all oses
2022-04-25 10:18:13 +02:00
David Négrier
7968c4ad7b
Upgrading playwright to 1.21 (#2084)
* Upgrading playwright to 1.21

Also, locking CI to install 1.21 (just like package.json is using).
This way, on the next Playwright release, CI will continue working.

* Running npx install playwright from the tests directory so that playwright can install the correct browsers
2022-04-13 14:33:30 +02:00
David Négrier
6540f15c5b
Refactoring Woka management (#1810)
* Wrap websockets with HyperExpress

* Add endpoints on pusher to resolve wokas

* getting textures urls from pusher

* Adding OpenAPI documentation for the pusher.

The pusher now exposes a "/openapi" endpoint and a "/swagger-ui/" endpoint.

* revert FRONT_URL

* playerTextures metadata is being loaded via Phaser.Loader

* fetch textures every time character or customize scene is open

* Heavy changes: refactoring the pusher to always send the textures (and the front to accept them)

* Sending character layer details to admin

* Cleaning commented code

* Fixing regex

* Fix woka endpoints on pusher

* Change error wording on pusher

* Working on integration of the woka-list with the new admin endpoint.

* Switching from "name" to "id" in texture object + using zod for woka/list validation

* Add position on default woka data

* Remove async on pusher option method

* Fix woka list url

* add options for /register

* Fxiing loading the Woka list

* Actually returning something in logout-callback

* Copying messages to back too

* remove customize button if no body parts are available (#1952)

* remove customize button if no body parts are available

* remove unused position field from PlayerTexturesCollection interface

* removed unused label field

* fix LocalUser test

* little PlayerTextures class refactor

* Fixing linting

* Fixing missing Openapi packages in prod

* Fixing back build

Co-authored-by: Hanusiak Piotr <piotr@ltmp.co>
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>

* Add returns on pusher endpoints

Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
Co-authored-by: Hanusiak Piotr <piotr@ltmp.co>
Co-authored-by: Piotr Hanusiak <wacneg@gmail.com>
2022-03-11 17:02:58 +01:00
Lukas
2938aba484
Multi-platform images (#1924)
* base front production image on official nginx

* build multi-platform docker images

* build message types outside docker

* set docker build context to path

* build message types before running e2e tests

* add build for arm/v7

* remove build for arm/v7

* increase yarn network timeout

* set front port to 80

* add git labels to images

https://github.com/docker/build-push-action/blob/master/UPGRADE.md#tags-with-ref-and-git-labels

* add images input

* Adding back commented code in the Dockerfile (the protobuf message building).

This way, when node-grpc supports ARM64, we can uncomment the code again.

Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
Co-authored-by: Lukas Hass @lukashass
2022-03-08 11:21:17 +01:00
David Négrier
7114be9a65
Merge pull request #1947 from thecodingmachine/parallel-build
Using parallel build in end to end tests
2022-03-07 19:02:18 +01:00
David Négrier
560be9b0d6 Using parallel build in end to end tests
The docker-compose build used in E2E tests was running builds sequentially.
This is an attempt to run the builds in parallel to optimize the E2E startup time.
Before this commit, the "Start WorkAdventure" step takes 7m11 on GitHub
2022-03-07 18:50:17 +01:00
Anton Bracke
3779c4b7db
add missing sub-path 2022-02-22 10:44:21 +01:00
Anton Bracke
41be011d5e
move electron folder 2022-02-22 10:41:55 +01:00
Anton Bracke
6b208ceb0c
Merge remote-tracking branch 'origin/develop' into electron 2022-02-21 22:12:49 +01:00
Anton Bracke
0f910693ef
add ci 2022-02-20 21:09:15 +01:00
Anton Bracke
05d7f64d1d
fix ci 2022-02-20 20:44:55 +01:00
Lukas Hass
e8d5335bc0
Merge branch 'develop' into vite 2022-02-19 20:08:50 +01:00
Anton Bracke
2b08faaa33
fix artifacts 2022-02-19 01:59:57 +01:00
Anton Bracke
389c2e4844
add caching 2022-02-18 23:55:40 +01:00
Anton Bracke
635bce8379
fix linux artifact upload 2022-02-18 22:52:49 +01:00
Anton Bracke
49feeb4426
fix path 2022-02-18 22:42:45 +01:00
Anton Bracke
770e82456e
simplify ci and upload build artifacts 2022-02-18 22:36:24 +01:00
Lukas Hass
6db6dd7e4d
fix artifact upload 2022-02-18 15:19:05 +01:00
Lukas Hass
b1c7e01008
add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
Anton Bracke
f755f18829
add some pretty names 2022-02-18 12:03:48 +01:00
Anton Bracke
de43233f36
fix release 2022-02-18 12:02:41 +01:00
Anton Bracke
1c1d61bd60
add release and electron-builder setup 2022-02-18 11:49:53 +01:00
Anton Bracke
d64c7f9605
update node 2022-02-18 10:27:55 +01:00
Anton Bracke
6e4041560b
add ci 2022-02-18 10:26:36 +01:00
David Négrier
ea8f791fae Adding missing ADMIN_SOCKETS_TOKEN environment variable in case we deploy with the connection to the admin 2022-02-17 15:34:00 +01:00
David Négrier
e36a1f1ced Continuous Deployment: add connect to admin
We can now connect to a remote admin server in the CD environment by using the new "deploy-connect-to-admin" label in the PR.
2022-02-17 15:04:51 +01:00
Lukas Hass
72c35e2d06
remove unused LIVE_RELOAD variable 2022-02-15 20:28:52 +01:00
Lukas Hass
c7fa2fc36b
remove unnecessary workflow steps
iframe-api-typings do not depend on proto messages / i18n and are built into the correct dir
2022-02-03 18:44:49 +01:00
Lukas Hass
8155b774d5
build iframe-api in ci 2022-02-03 18:41:38 +01:00
Lukas Hass
faf6be889e
add typecheck script 2022-02-03 18:41:13 +01:00
Alexis Faizeau
fdec12d311 Generate i18n files on ci/cd 2022-01-24 18:59:28 +01:00
David Négrier
7ff5b32557 Improving instance type 2022-01-19 21:47:06 +01:00
David Négrier
fb69476b97
Merge pull request #1698 from thecodingmachine/ts-proto
Migrating front protobuf encode/decode to ts-proto lib
2022-01-03 18:07:19 +01:00
David Négrier
7b239e8ebb Disabling running end to end tests for forks
Github Actions does not provide big enough VMs for E2E tests.
So we need to spin our own instances on AWS. But we cannot share the credentials with the forks for obvious security reasons.
We therefore need to completely disable E2E tests for forks :(
2022-01-03 17:57:41 +01:00
David Négrier
bf070c33b5 Migrating front protobuf encode/decode to ts-proto lib
The ts-proto lib has the huge advantage of producing code the "Typescript" way and not the "Java" way.
In particular, for "oneof" types in protobuf, it is generating "ADT" that can be used to check if we forgot or not to deal with a type.
2022-01-03 15:52:46 +01:00
David Négrier
d4f8cf4210 Updating AMI 2021-12-24 17:00:45 +01:00
David Négrier
b58f9ed6f7 Putting back token 2021-12-24 16:50:12 +01:00
David Négrier
03d8562a65 Trying to comment personal access token 2021-12-24 16:45:32 +01:00
David Négrier
cf67b95e5b Attempting to set up custom EC2 instances for E2E tests 2021-12-24 16:43:38 +01:00
David Négrier
805368dd3f Fixing CI with new messages 2021-12-16 16:15:12 +01:00
David Négrier
a5325e9327 Improving test speed and trying to get error logs whatever happens 2021-12-05 21:24:29 +01:00
David Négrier
97460886f0 Fixing CI 2021-12-05 19:24:54 +01:00
David Négrier
0c7aedb777 Setting LIVE_RELOAD=0 in CI 2021-12-03 18:41:21 +01:00
David Négrier
7326e2a38c Mounting Docker socket in testcafe container 2021-12-01 14:37:36 +01:00
David Négrier
a3b20cf065 Installing NPM dependencies in CI for tests 2021-12-01 14:29:51 +01:00
David Négrier
445599416c Commenting waiting as this does not work for some reason 2021-11-24 17:24:11 +01:00
David Négrier
d1122d75ec Fixing CI 2021-11-24 16:59:22 +01:00
David Négrier
d8c10ce10a CI fix 2021-11-24 16:32:37 +01:00
David Négrier
065404758b Making sure pusher and admin are started in CI 2021-11-24 16:22:26 +01:00
David Négrier
d3bd99b5ee Fixing running of prettier check on the front 2021-11-24 15:24:24 +01:00