Skip to content

Commit

Permalink
New version
Browse files Browse the repository at this point in the history
---------

Co-authored-by: grp grp <[email protected]>
Co-authored-by: David Négrier <[email protected]>
  • Loading branch information
3 people authored Sep 4, 2023
1 parent 819f78c commit 13e3be9
Show file tree
Hide file tree
Showing 160 changed files with 5,809 additions and 3,142 deletions.
10 changes: 10 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,13 @@ SENTRY_PROJECT=

# RoomAPI
ROOM_API_SECRET_KEY=

# Integration tools
KLAXOON_ENABLED=false
KLAXOON_CLIENT_ID=
YOUTUBE_ENABLED=true
GOOGLE_DOCS_ENABLED=true
GOOGLE_SHEETS_ENABLED=true
GOOGLE_SLIDES_ENABLED=true
GOOGLE_DRIVE_ENABLED=true
ERASER_ENABLED=true
50 changes: 22 additions & 28 deletions .github/workflows/build-test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ concurrency:
jobs:
build-play:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -118,7 +117,6 @@ jobs:

build-chat:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -194,7 +192,6 @@ jobs:

build-back:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -295,7 +292,6 @@ jobs:

build-uploader:
runs-on: ubuntu-latest

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down Expand Up @@ -356,7 +352,6 @@ jobs:

build-maps:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -422,7 +417,6 @@ jobs:

build-map-storage:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -516,7 +510,6 @@ jobs:

build-ejabberd:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -651,51 +644,45 @@ jobs:
sed -i "s/JITSI_DOMAIN=/JITSI_DOMAIN=coremeet.workadventu.re/g" .env
sed -i "s/JITSI_MUC_DOMAIN=/JITSI_MUC_DOMAIN=muc.prosody.workadventu.re/g" .env
sed -i "s/JITSI_XMPP_DOMAIN=/JITSI_XMPP_DOMAIN=prosody.workadventu.re/g" .env
sed -i "s/KLAXOON_ENABLED=false/KLAXOON_ENABLED=true/g" .env
sed -i "s/KLAXOON_CLIENT_ID=/KLAXOON_CLIENT_ID=${{ env.KLAXOON_CLIENT_ID }}/g" .env
-
name: Download artifact
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: play
path: /tmp
-
name: Download artifact
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: chat
path: /tmp
-
name: Download artifact
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: back
path: /tmp
-
name: Download artifact
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: maps
path: /tmp
-
name: Download artifact
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: map-storage
path: /tmp
-
name: Download artifact
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: uploader
path: /tmp
-
name: Download artifact
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: ejabberd
path: /tmp
-
name: Load image
- name: Load image
run: |
docker load --input /tmp/play.tar.gz
docker load --input /tmp/chat.tar.gz
Expand All @@ -706,11 +693,13 @@ jobs:
docker load --input /tmp/ejabberd.tar.gz
docker image ls -a
- name: Start WorkAdventure
run: docker-compose -f docker-compose.yaml -f docker-compose-oidc.yaml -f docker-compose.e2e.yml up -d
run: |
docker-compose -f docker-compose.yaml -f docker-compose-oidc.yaml -f docker-compose.e2e.yml pull
docker-compose -f docker-compose.yaml -f docker-compose-oidc.yaml -f docker-compose.e2e.yml up -d
env:
DOCKER_TAG: ${{ github.event_name == 'pull_request' && env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }}
- name: Upload test-map
run: sleep 10 && npm run upload-test-map
run: sleep 30 && npm run upload-test-map
working-directory: map-storage
- name: Run Playwright tests
run: npm run test-prod-like -- --project=${{ matrix.browser }} --shard=${{ matrix.shard }}/${{ matrix.nbShards }}
Expand Down Expand Up @@ -797,6 +786,8 @@ jobs:
sed -i "s/JITSI_MUC_DOMAIN=/JITSI_MUC_DOMAIN=muc.prosody.workadventu.re/g" .env
sed -i "s/JITSI_XMPP_DOMAIN=/JITSI_XMPP_DOMAIN=prosody.workadventu.re/g" .env
sed -i "s/FEATURE_FLAG_BROADCAST_AREAS=/FEATURE_FLAG_BROADCAST_AREAS=true/g" .env
sed -i "s/KLAXOON_ENABLED=false/KLAXOON_ENABLED=true/g" .env
sed -i "s/KLAXOON_CLIENT_ID=/KLAXOON_CLIENT_ID=${{ env.KLAXOON_CLIENT_ID }}/g" .env
echo "WOKA_SPEED=3" >> .env
env:
DOCKER_TAG: ${{ github.event_name == 'pull_request' && env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }}
Expand All @@ -807,7 +798,10 @@ jobs:
DOCKER_TAG: ${{ github.event_name == 'pull_request' && env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }}
working-directory: contrib/docker
- name: Upload test-map
run: sleep 10 && npm run upload-test-map-single-domain
run: |
sed -i "s/http:/https:/g" tests/assets/maps/empty.wam
sleep 10
npm run upload-test-map-single-domain
working-directory: map-storage
- name: Run Playwright tests
# Run all tests, except the ones needing to restart Docker and the ones relying on an OIDC server
Expand Down Expand Up @@ -840,7 +834,6 @@ jobs:
path: tests/playwright-report/
retention-days: 30


deeploy:
needs:
- build-play
Expand Down Expand Up @@ -912,6 +905,7 @@ jobs:
ENABLE_REPORT_ISSUES_MENU: ${{ secrets.ENABLE_REPORT_ISSUES_MENU }}
REPORT_ISSUES_URL: ${{ secrets.REPORT_ISSUES_URL }}
LOGROCKET_ID: ${{ secrets.LOGROCKET_ID }}
KLAXOON_CLIENT_ID: ${{ secrets.KLAXOON_CLIENT_ID }}
with:
namespace: workadventure-${{ github.event_name == 'pull_request' && env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }}

Expand Down Expand Up @@ -942,4 +936,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "Environment deployed at https://play-${{ env.GITHUB_HEAD_REF_SLUG }}.test.workadventu.re \nTests available at https://maps-${{ env.GITHUB_HEAD_REF_SLUG }}.test.workadventu.re/tests"

check_for_duplicate_msg: true
3 changes: 2 additions & 1 deletion back/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@
"dependencies": {
"@anatine/zod-openapi": "^1.3.0",
"@grpc/grpc-js": "^1.7.1",
"@grpc/proto-loader": "0.7.8",
"@sentry/node": "^7.48.0",
"@workadventure/messages": "1.0.0",
"@workadventure/shared-utils": "1.0.0",
"@workadventure/tiled-map-type-guard": "^2.1.0",
"axios": "^1.3.2",
"bigbluebutton-js": "^0.1.1",
"busboy": "^0.3.1",
"busboy": "^1.6.0",
"circular-json": "^0.5.9",
"debug": "^4.3.1",
"google-protobuf": "^3.21.0",
Expand Down
2 changes: 1 addition & 1 deletion back/tests/EnvironmentVariableValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { EnvironmentVariables } from "../src/Enum/EnvironmentVariableValidator";
describe("EnvironmentVariable", () => {
it("should validate properly URLs", () => {
let result = EnvironmentVariables.safeParse({
PLAY_URL: "https://exemple.com",
PLAY_URL: "https://example.com",
});
expect(result.success).toBe(true);

Expand Down
1 change: 1 addition & 0 deletions chat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COPY libs/map-editor/package.json libs/map-editor/package.json
COPY libs/math-utils/package.json libs/math-utils/package.json
COPY libs/tailwind/package.json libs/tailwind/package.json
COPY libs/store-utils/package.json libs/store-utils/package.json
COPY libs/shared-utils/package.json libs/shared-utils/package.json
RUN npm ci --workspace=workadventurechat
COPY libs ./libs
COPY --from=proto-builder /usr/libs/messages/src ./libs/messages/src
Expand Down
4 changes: 4 additions & 0 deletions chat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@

</div>
<script type="module" src="/src/index.ts"></script>

<!-- Klaxoon integration -->
<!-- Script to use Klaxoon in WorkAdventure Chat -->
<script type="text/javascript" src="https://metadventure.s3.eu-west-1.amazonaws.com/scripting/klaxoon.js"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@sentry/browser": "^7.48.0",
"@tailwindcss/forms": "^0.5.3",
"@workadventure/messages": "1.0.0",
"@workadventure/shared-utils": "^1.0.0",
"@workadventure/store-utils": "1.0.0",
"@workadventure/tailwind": "1.0.0",
"axios": "^1.3.2",
Expand Down Expand Up @@ -78,8 +79,8 @@
"lint": "eslint src/ tests/ --ext .ts,.svelte",
"fix": "eslint --fix src/ tests/ --ext .ts,.svelte",
"precommit": "lint-staged",
"svelte-check-watch": "svelte-check --fail-on-warnings --threshold error --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore,a11y-click-events-have-key-events:ignore,security-anchor-rel-noreferrer:ignore\" --watch",
"svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore,a11y-click-events-have-key-events:ignore,security-anchor-rel-noreferrer:ignore\"",
"svelte-check-watch": "svelte-check --fail-on-errors --threshold error --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore,a11y-click-events-have-key-events:ignore,security-anchor-rel-noreferrer:ignore\" --watch",
"svelte-check": "svelte-check --fail-on-errors --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore,a11y-click-events-have-key-events:ignore,security-anchor-rel-noreferrer:ignore\"",
"pretty": "prettier --write 'src/**/*.{ts,svelte}'",
"pretty-check": "prettier --check 'src/**/*.{ts,svelte}'",
"typecheck": "tsc --noEmit",
Expand Down
Binary file added chat/public/static/images/applications/appOff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chat/public/static/images/applications/appOn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions chat/public/static/images/applications/eraser.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions chat/public/static/images/applications/google-docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions chat/public/static/images/applications/google-forms.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions chat/public/static/images/applications/google-keeps.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions chat/public/static/images/applications/google-sheets.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions chat/public/static/images/applications/google-slides.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions chat/public/static/images/applications/klaxoon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions chat/public/static/images/applications/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chat/public/static/images/no-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 13e3be9

Please sign in to comment.