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 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