-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Se incluye el API para eliminar documentos
- Loading branch information
Jonattan Velasquez
committed
Jul 13, 2023
1 parent
828e1c7
commit c882f7f
Showing
30 changed files
with
2,331 additions
and
3,325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,199 +1,99 @@ | ||
name: "Main action" | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
on: push | ||
|
||
jobs: | ||
install-linux: | ||
name: "Install linux dependencies" | ||
prepare: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 15.x, 16.x] | ||
|
||
node-version: [18.x] | ||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} 🐲 | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get npm cache directory path 📦 | ||
id: npm-cache-dir-path | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- uses: actions/cache@v2 | ||
id: npm-cache | ||
cache-dependency-path: '**/package-lock.json' | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.npm-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.lock') }} | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: npm install | ||
|
||
- name: Install dependencies 📦 | ||
run: npm install | ||
|
||
install-windows: | ||
name: "Install windows dependencies" | ||
runs-on: windows-latest | ||
|
||
static-check: | ||
timeout-minutes: 30 | ||
needs: prepare | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 15.x, 16.x] | ||
|
||
node-version: [18.x] | ||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} 🐲 | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get npm cache directory path 📦 | ||
id: npm-cache-dir-path | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- uses: actions/cache@v2 | ||
id: npm-cache | ||
cache-dependency-path: '**/package-lock.json' | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.npm-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.lock') }} | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: npm install | ||
- run: npm run lint | ||
|
||
- name: Install dependencies 📦 | ||
run: npm install | ||
|
||
test-linux: | ||
name: "Unit testing" | ||
test: | ||
timeout-minutes: 30 | ||
|
||
needs: install-linux | ||
needs: static-check | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 15.x, 16.x] | ||
|
||
node-version: [18.x] | ||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} 🐲 | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get npm cache directory path 📦 | ||
id: npm-cache-dir-path | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- uses: actions/cache@v2 | ||
id: npm-cache | ||
cache-dependency-path: '**/package-lock.json' | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.npm-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.lock') }} | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies 📦 | ||
run: npm install | ||
|
||
- name: Unit Tests 🐞 | ||
run: npm test -- --coverage | ||
|
||
- name: Coverage artifacts 🧳 | ||
uses: actions/upload-artifact@v2 | ||
- run: npm install | ||
- run: npm test -- --coverage | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage-report | ||
retention-days: 1 | ||
path: | | ||
coverage | ||
test-windows: | ||
name: "Unit testing" | ||
timeout-minutes: 30 | ||
|
||
needs: install-windows | ||
runs-on: windows-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 15.x, 16.x] | ||
|
||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} 🐲 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get npm cache directory path 📦 | ||
id: npm-cache-dir-path | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- uses: actions/cache@v2 | ||
id: npm-cache | ||
with: | ||
path: ${{ steps.npm-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies 📦 | ||
run: npm install | ||
|
||
- name: Unit Tests 🐞 | ||
run: npm test | ||
|
||
report-coverage: | ||
name: "Report coverage" | ||
timeout-minutes: 30 | ||
|
||
needs: test-linux | ||
needs: test | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
node-version: [18.x] | ||
steps: | ||
- name: Checkout repository 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} 🐲 | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get npm cache directory path 📦 | ||
id: npm-cache-dir-path | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- uses: actions/cache@v2 | ||
id: npm-cache | ||
cache-dependency-path: '**/package-lock.json' | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.npm-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.lock') }} | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Download a coverage artifacts 🧳 | ||
uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage-report | ||
path: coverage | ||
|
||
- name: Coveralls 🔮 | ||
uses: coverallsapp/github-action@master | ||
- uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore artifacts: | ||
.github | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.