From 39c8dab2b2148b3604b3c46afc7a90f54cd21fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sat, 4 Apr 2020 15:58:59 +0200 Subject: [PATCH 1/4] Fixing CI --- .github/workflows/continuous_integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 57db8f2a..0e741ab6 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -18,7 +18,7 @@ jobs: uses: "actions/checkout@v2.0.0" - name: "Setup NodeJS" - - uses: actions/setup-node@v1 + uses: actions/setup-node@v1 with: node-version: '12.x' @@ -40,7 +40,7 @@ jobs: uses: "actions/checkout@v2.0.0" - name: "Setup NodeJS" - - uses: actions/setup-node@v1 + uses: actions/setup-node@v1 with: node-version: '12.x' From 6921706251c9702055364318e6de2e5f7ff5e6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sat, 4 Apr 2020 16:02:41 +0200 Subject: [PATCH 2/4] Adding fake API_URL for tests --- .github/workflows/continuous_integration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 0e741ab6..e81c19d8 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -28,6 +28,8 @@ jobs: - name: "Build" run: yarn run build + env: + API_URL: "http://localhost:8080" working-directory: "front" continuous-integration-back: From 375777a62364f0d71992ec7190cb52abcc9ee452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sat, 4 Apr 2020 16:05:31 +0200 Subject: [PATCH 3/4] Adding build badge to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 61ee39f0..9ed3bea1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![](https://github.com/thecodingmachine/workadventure/workflows/Continuous%20Integration/badge.svg) + # Work Adventure ## Work in progress From 531899ea6ba79f41af39cf01cca0444121a82414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sat, 4 Apr 2020 16:06:38 +0200 Subject: [PATCH 4/4] Fixing missing closing parenthesis --- front/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/index.ts b/front/src/index.ts index ace0fa36..9038a9c7 100644 --- a/front/src/index.ts +++ b/front/src/index.ts @@ -17,4 +17,4 @@ let game = new Phaser.Game(config); window.addEventListener('resize', function (event) { game.scale.resize(window.innerWidth / resolution, window.innerHeight / resolution); -} +});