Adding basic tests
This commit is contained in:
26
.gitea/workflows/server_tests.yaml
Normal file
26
.gitea/workflows/server_tests.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Run Socket Server Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- all
|
||||
# You can adjust the branches as needed
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
Reference in New Issue
Block a user