Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/version update #17

Merged
merged 13 commits into from
Apr 8, 2024
8 changes: 4 additions & 4 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
working-directory: ./api
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.17.6
node-version: 18
cache: 'npm'
cache-dependency-path: './api/package-lock.json'
- run: npm install
- run: npm run test

- name: Generate API Mochawesome Report
if: always()
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v3
with:
name: APIMochaReport
path: api/reports
28 changes: 14 additions & 14 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
working-directory: ./web
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.17.6
node-version: 18
cache: 'npm'
cache-dependency-path: './web/package-lock.json'
- run: npm install
- run: npm install --legacy-peer-deps
- run: npm run smoke

MochaTests:
Expand All @@ -31,14 +31,14 @@ jobs:
working-directory: ./web
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.17.6
node-version: 18
cache: 'npm'
cache-dependency-path: './web/package-lock.json'
- run: npm install
- run: npm install --legacy-peer-deps
- run: npm run test

- name: Generate Mochawesome Report
Expand All @@ -47,7 +47,7 @@ jobs:

- name: Export Mochawesome Report
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: MochaHTMLReport
path: web/mochawesome-report
Expand All @@ -60,14 +60,14 @@ jobs:
working-directory: ./web
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.17.6
node-version: 18
cache: 'npm'
cache-dependency-path: './web/package-lock.json'
- run: npm install
- run: npm install --legacy-peer-deps
- run: npm run test:e2e

- name: Generate Cucumber HTML Report
Expand All @@ -76,7 +76,7 @@ jobs:

- name: Export Cucumber HTML Report
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CucumberHTMLReport
path: web/reports/cucumber/cucumber-report.html
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
],
"cucumberautocomplete.strictGherkinCompletion": true,
"editor.codeActionsOnSave": {
"source.fixAll.tslint": true,
"source.organizeImports": true
"source.fixAll.tslint": "explicit",
"source.organizeImports": "explicit"
},
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.formatOnSave": true
Expand Down
24 changes: 24 additions & 0 deletions api/.mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
spec: ['test/**/*.ts'],
package: './package.json',
require: ['ts-node/register', 'tsconfig-paths/register'],
extension: ['ts'],
timeout: 20 * 1000,
grep: '',
ignore: [''],
reporter: 'mochawesome',
'reporter-option': [
'reportDir=reports',
'reportFilename=index',
'reportTitle=API Test Report',
'charts=true',
'code=false',
'inline=true',
'autoOpen=false',
'showPassed=true',
'showFailed=true',
'showPending=true',
'showSkipped=true',
'showHooks=failed'
]
};
1 change: 0 additions & 1 deletion api/config/baseuri.ts

This file was deleted.

1 change: 1 addition & 0 deletions api/config/setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const REQ_RES_BASE_URI = "https://reqres.in"
Loading
Loading