mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[git actions] Dameng tests action, dameng connector refactoring, dependencies update, minor structure refactorng
This commit is contained in:
34
.github/workflows/unitTests.yml
vendored
Normal file
34
.github/workflows/unitTests.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Service unit tests
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.js'
|
||||
- '!tests/integration/**'
|
||||
- '!DocService/sources/databaseConnectors/**'
|
||||
jobs:
|
||||
unit-tests:
|
||||
name: Service unit tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Caching dependencies
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: |
|
||||
./npm-shrinkwrap.json
|
||||
./Common/npm-shrinkwrap.json
|
||||
./DocService/npm-shrinkwrap.json
|
||||
|
||||
- name: Install modules
|
||||
run: |
|
||||
npm ci
|
||||
npm --prefix Common ci
|
||||
npm --prefix DocService ci
|
||||
|
||||
- name: Run Jest
|
||||
run: npm run "unit tests"
|
||||
Reference in New Issue
Block a user