diff --git a/.github/workflows/learn-github-actions.yml b/.github/workflows/learn-github-actions.yml new file mode 100644 index 0000000..c4bc1f6 --- /dev/null +++ b/.github/workflows/learn-github-actions.yml @@ -0,0 +1,14 @@ +name: learn-github-actions +run-name: ${{ github.actor }} is learning GitHub Actions / Si! +on: [pull_request] +jobs: + check-bats-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '14' + - run: npm install -g bats + - run: bats -v + - run: echo "hello world" diff --git a/server.js b/server.js index db9fe71..50434bd 100644 --- a/server.js +++ b/server.js @@ -2,14 +2,14 @@ const { Database } = require('sqlite3') const { open } = require('sqlite') -const app = require('./app') // Import Express.js application +const app = require('./app') // testing const { Server } = require('socket.io') const http = require('http') const chatHandler = require('./handler/chat') -// Function to setup database if it doesn't exist; this will run on start +// Function to setup database if it doesn't exist; this will run on start algo mas aqui ***** const setupDatabase = async () => { // Open accounts database const accDb = await open({