From 8d2e03de65e1095c5df4387d5b4abf5c0ab319c3 Mon Sep 17 00:00:00 2001 From: Polina Skuratovets Date: Fri, 29 Aug 2025 16:03:31 +0300 Subject: [PATCH 1/2] add GitHub Actions workflow for testing on pull requests --- .github/workflows/test.yml-template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml-template diff --git a/.github/workflows/test.yml-template b/.github/workflows/test.yml-template new file mode 100644 index 000000000..bb13dfc45 --- /dev/null +++ b/.github/workflows/test.yml-template @@ -0,0 +1,23 @@ +name: Test + +on: + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test From 2e1cb0a5f3f40efde8089f7850915c8b8cbaf581 Mon Sep 17 00:00:00 2001 From: Polina Skuratovets Date: Fri, 29 Aug 2025 16:06:09 +0300 Subject: [PATCH 2/2] fix formatting in readme.md for consistency --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 951399fac..94440d652 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,8 @@ -# Chat (with Node.js) +# Chat (with Node.js) Implement a chat application (both client and server) -- You type a username and send it to the server -- It is now username (save it in localStorage) +- You type a username and send it to the server. +- It is now username (save it in localStorage). - All the messages should have an author, time and text - Implement an ability to create rooms (create / rename / join / delete) - New user should see all prev messages in the room