From d87aa4e71c31830358da98e05fd3e3dcc6b33b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20ud=C3=A9n?= Date: Fri, 10 Nov 2023 00:55:44 +0100 Subject: [PATCH 1/4] Create build_websocket_api.yml --- .github/workflows/build_websocket_api.yml | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build_websocket_api.yml diff --git a/.github/workflows/build_websocket_api.yml b/.github/workflows/build_websocket_api.yml new file mode 100644 index 0000000..ce46669 --- /dev/null +++ b/.github/workflows/build_websocket_api.yml @@ -0,0 +1,31 @@ +name: WebsocketAPI CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: Install typescript + working-directory: ./WebSocketAPI + run: npm install --global typescript + - name: Build + working-directory: ./WebSocketAPI + run: npm run build From 3c63eaa09f269e10343baaf54eecf9103166491a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20ud=C3=A9n?= Date: Fri, 10 Nov 2023 00:59:58 +0100 Subject: [PATCH 2/4] Create docker-image-websocketapi.yml --- .../workflows/docker-image-websocketapi.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/docker-image-websocketapi.yml diff --git a/.github/workflows/docker-image-websocketapi.yml b/.github/workflows/docker-image-websocketapi.yml new file mode 100644 index 0000000..ab697db --- /dev/null +++ b/.github/workflows/docker-image-websocketapi.yml @@ -0,0 +1,19 @@ +name: Docker Image CI WebsocketAPI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag novauniverse/tournamentsystemwebsocketapi:$(date +%s) + working-directory: ./WebSocketAPI From 846c6b7785bef5398e6cd237c738c695da4a2f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20ud=C3=A9n?= Date: Fri, 10 Nov 2023 01:02:25 +0100 Subject: [PATCH 3/4] Update build_websocket_api.yml --- .github/workflows/build_websocket_api.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_websocket_api.yml b/.github/workflows/build_websocket_api.yml index ce46669..20a8931 100644 --- a/.github/workflows/build_websocket_api.yml +++ b/.github/workflows/build_websocket_api.yml @@ -23,6 +23,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' + working-directory: ./WebSocketAPI - name: Install typescript working-directory: ./WebSocketAPI run: npm install --global typescript From 4f651b37ca69c538b5e9ad13b70f522f8420263b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20ud=C3=A9n?= Date: Fri, 10 Nov 2023 01:04:29 +0100 Subject: [PATCH 4/4] Delete .github/workflows/build_websocket_api.yml --- .github/workflows/build_websocket_api.yml | 32 ----------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/build_websocket_api.yml diff --git a/.github/workflows/build_websocket_api.yml b/.github/workflows/build_websocket_api.yml deleted file mode 100644 index 20a8931..0000000 --- a/.github/workflows/build_websocket_api.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: WebsocketAPI CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x, 16.x, 18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - working-directory: ./WebSocketAPI - - name: Install typescript - working-directory: ./WebSocketAPI - run: npm install --global typescript - - name: Build - working-directory: ./WebSocketAPI - run: npm run build