This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user