-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from gdsc0301/babylon-version
Babylon version
- Loading branch information
Showing
31 changed files
with
3,805 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Server Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- babylon-version | ||
|
||
jobs: | ||
testing: | ||
name: Server Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- run: bun install | ||
- run: bun test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
FROM node:18-alpine | ||
FROM oven/bun | ||
|
||
# Replace shell with bash so we can source files | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
# Set debconf to run non-interactively | ||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
|
||
# Install base dependencies | ||
RUN apt-get update && apt-get install -y -q --no-install-recommends \ | ||
apt-transport-https \ | ||
build-essential \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
libssl-dev \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV NODE_VERSION=20.6.0 | ||
RUN apt install -y curl | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash | ||
ENV NVM_DIR=/root/.nvm | ||
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | ||
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | ||
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | ||
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" | ||
RUN node --version | ||
RUN npm --version | ||
|
||
COPY . . | ||
|
||
ENV PORT=8080 | ||
|
||
RUN npm install | ||
RUN npm run build | ||
RUN bun install | ||
RUN bun run build | ||
|
||
EXPOSE 8080:8080 | ||
CMD [ "npm", "run", "start" ] | ||
EXPOSE 8080 | ||
CMD [ "bun", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[![Build and Deploy](https://github.com/gdsc0301/best-multiplayer-game-possible/actions/workflows/page.yml/badge.svg)](https://github.com/gdsc0301/best-multiplayer-game-possible/actions/workflows/page.yml) | ||
# best-multiplayer-game-possible | ||
[![Build and Deploy](https://github.com/gdsc0301/best-multiplayer-game-possible/actions/workflows/page.yml/badge.svg)](https://github.com/gdsc0301/best-multiplayer-game-possible/actions/workflows/page.yml) [![Server Tests](https://github.com/gdsc0301/best-multiplayer-game-possible/actions/workflows/server_tests.yml/badge.svg)](https://github.com/gdsc0301/best-multiplayer-game-possible/actions/workflows/server_tests.yml) | ||
# BEST MULTIPLAYER GAME POSSIBLE | ||
It's a multiplayer game that will grow gradually, so it will start being a multiplayer game that any amount of people can access, just like a MMO. | ||
Here's the link: https://gdsc0301.github.io/best-multiplayer-game-possible/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.