diff --git a/.gitea/workflows/server_tests.yaml b/.gitea/workflows/server_tests.yaml index 8e6be81..bfa4262 100644 --- a/.gitea/workflows/server_tests.yaml +++ b/.gitea/workflows/server_tests.yaml @@ -1,10 +1,6 @@ name: Run Socket Server Tests -on: - push: - branches: - - all - # You can adjust the branches as needed +on: [push] jobs: test: @@ -12,15 +8,20 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - name: Setup Node.js - uses: actions/setup-node@v3 + working-directory: './server' + uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '20' - name: Install dependencies - run: npm install + working-directory: './server' + run: npm install dev + - run: echo "Node has finished installing dependencies" - name: Run tests + working-directory: './server' run: npm test \ No newline at end of file