Skip to content

Commit

Permalink
add validation to all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarrero committed Jan 25, 2024
1 parent de956cc commit 210feef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
#
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)

name: Node.js CI

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Run Mockoon CLI
uses: mockoon/cli-action@v1
with:
version: '6.0.1'
data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json'
port: 3000
- name: install dependencies
- name: Install dependencies
run: npm install
- name: execute Test
run: make test
- name: Execute test
run: make test
env:
BASE_PATH: http://localhost:3000
- name: publish code coverage
- name: Publish code coverage
if: matrix.node-version == 14
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand Down
2 changes: 1 addition & 1 deletion templates/node/package.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"clean": "rm -rf node_modules && rm -rf dist && rm -rf coverage"
},
"dependencies": {
"axios": "1.6.2"
"axios": "1.6.5"
},
"devDependencies": {
"@types/node": "^12.11.5",
Expand Down

0 comments on commit 210feef

Please sign in to comment.