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

MAF 3.0 #63

Draft
wants to merge 49 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4c47559
Update @cucumber/cucumber version to 10.0.0
martdo02 Dec 22, 2023
2d0d86f
Update ESLint configuration
martdo02 Jan 3, 2024
700ea31
Update peerDependencies to use @cucumber/cucumber version 10.0.0
martdo02 Jan 3, 2024
826c58b
Move API feature tests
martdo02 Jan 3, 2024
9b4b41a
Add API step definitions and remove unnecessary code
martdo02 Jan 3, 2024
79a777e
Add feature file for API GET requests
martdo02 Jan 3, 2024
58d8211
Update MAF package.json version to 3.0.0
martdo02 Jan 3, 2024
32f1979
Fixed urlEncoded parameters
martdo02 Jan 3, 2024
08bfd8c
fix vscode autocomplete
martdo02 Jan 3, 2024
397d75b
Update API module documentation
martdo02 Jan 4, 2024
a90f6ce
Refactor API request scenarios and update URLs
martdo02 Jan 4, 2024
83ad75d
Delete unnecessary files
martdo02 Jan 4, 2024
4bad1c9
Remove unnecessary files
martdo02 Jan 4, 2024
1a9a798
Refactor AWS stepDefinitions
martdo02 Jan 4, 2024
ad7e1fe
Bump localstack
martdo02 Jan 8, 2024
2fbd4c8
re-add api runFeature.sh
martdo02 Jan 8, 2024
b2571b8
Update filltemplate to fillTemplate
martdo02 Jan 23, 2024
abd06a0
Add important concepts and developer notes
martdo02 Jan 23, 2024
6e9d428
Update multiple-cucumber-html-reporter version to 3.6.1
martdo02 Jan 23, 2024
ee54782
Refactor core js files
martdo02 Jan 23, 2024
1079f68
Delete unneeded AWS ESLint configuration file
martdo02 Jan 23, 2024
8e60ac0
Remove AWS profile from initLocalstack.tf
martdo02 Jan 23, 2024
9cb3862
Update package-lock using npm update
martdo02 Jan 23, 2024
7fd79fb
Merge remote-tracking branch 'origin/main' into maf-3.0
martdo02 Jan 23, 2024
28adb1f
Delete CHANGELOG.md file
martdo02 Jan 23, 2024
fde25e0
Remove .eslintrc files. Only one is needed for the whole project
martdo02 Jan 24, 2024
037464a
Add GitHub Actions workflow for testing API package
martdo02 Jan 24, 2024
2dd62e7
Add workflow_dispatch trigger to package-api.yml
martdo02 Jan 24, 2024
387d5f3
Update package.json with new version and remove unnecessary postinsta…
martdo02 Jan 24, 2024
016196c
Add AWS package workflow and import dependencies
martdo02 Jan 24, 2024
a5f89db
quick fixes
martdo02 Jan 24, 2024
41cf70c
Add validations action
martdo02 Jan 24, 2024
477ab6c
Remove unnecessary VSCode configuration files and scripts
martdo02 Jan 24, 2024
b597fe1
Add workflows for testing default SQL and preprocessor packages
martdo02 Jan 24, 2024
a1b5e60
Update package versions to 3.0.0-beta.0
martdo02 Jan 24, 2024
5dea918
Add postpublish script to package.json
martdo02 Jan 24, 2024
3c64470
Update internal package dependencies in package.json files
martdo02 Jan 24, 2024
8870352
Add Luxon feature for validations
martdo02 Feb 7, 2024
538bbbb
init sftp
martdo02 Feb 7, 2024
d68806e
Update package versions
martdo02 Feb 7, 2024
2d5ec5e
Remove unused code and fix a typo in sftp.js
martdo02 Feb 7, 2024
5fae02b
Add sftp package to package.json
martdo02 Feb 7, 2024
05c37d5
Remove SFTP feature file
martdo02 Feb 7, 2024
a96db6e
Update MAFSave function and refactor performJSONObjectTransform
martdo02 Feb 8, 2024
410753b
Refactor validations module and fix equivalence operator eval
martdo02 Feb 8, 2024
d208e62
Refactor code to improve readability and maintainability
martdo02 Feb 8, 2024
bc12845
Refactor JSON key extraction logic in validations/index.js
martdo02 Feb 8, 2024
fb30f74
Update mysql2 version in mysql
martdo02 Apr 16, 2024
da67d0f
Update mysql2 version in mysql package
martdo02 Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/package-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test API Package

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'packages/api/**'
pull_request:
paths:
- 'packages/api/**'

jobs:
MAF-API:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases

steps:
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm ci

- run: npm test -w packages/api
env:
ENVIRONMENT: CI

- name: Status Create Action
if: ${{ always() }}
uses: hkusu/status-create-action@v1.0.1
id: status-create
with:
state: ${{ job.status }}
sha: ${{ github.sha }}

- name: Show result
if: always()
run: echo '${{ steps.status-create.outputs.result }}'
20 changes: 9 additions & 11 deletions .github/workflows/Test.yml → .github/workflows/package-aws.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build / Test
name: Test AWS Package

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'packages/aws/**'
pull_request:
branches: [ main ]
paths:
- 'packages/aws/**'

jobs:
build:

MAF-AWS:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
- name: Start LocalStack
run: |
pip install localstack==2.3.2
pip install localstack==3.0.2
localstack start -d
echo "Waiting for LocalStack startup..."
localstack wait -t 30
Expand All @@ -41,12 +41,10 @@ jobs:
terraform init
terraform plan
terraform apply -auto-approve
- run: npx lerna run test
- run: npm test -w packages/aws
env:
ENVIRONMENT: CI
USE_ENV_VARIABLES: "TRUE"
FAKE_SQL_USERNAME: MAF
FAKE_SQL_PASSWORD: MAF
LOCALSTACK_HOSTNAME: localhost
AWSENV: LOCALSTACK

Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/package-default-sql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Test Default SQL Package

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'packages/defaultSQL/**'
pull_request:
paths:
- 'packages/defaultSQL/**'

jobs:
MAF-Default-SQL:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases

steps:
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm ci

- run: npm test -w packages/defaultSQL
env:
ENVIRONMENT: CI
USE_ENV_VARIABLES: "TRUE"
FAKE_SQL_USERNAME: MAF
FAKE_SQL_PASSWORD: MAF

- name: Status Create Action
if: ${{ always() }}
uses: hkusu/status-create-action@v1.0.1
id: status-create
with:
state: ${{ job.status }}
sha: ${{ github.sha }}

- name: Show result
if: always()
run: echo '${{ steps.status-create.outputs.result }}'
45 changes: 45 additions & 0 deletions .github/workflows/package-preprocessor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test Preprocessor Package

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'packages/preprocessor/**'
pull_request:
paths:
- 'packages/preprocessor/**'

jobs:
MAF-Preprocessor:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases

steps:
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm ci

- run: npm test -w packages/preprocessor
env:
ENVIRONMENT: CI

- name: Status Create Action
if: ${{ always() }}
uses: hkusu/status-create-action@v1.0.1
id: status-create
with:
state: ${{ job.status }}
sha: ${{ github.sha }}

- name: Show result
if: always()
run: echo '${{ steps.status-create.outputs.result }}'
45 changes: 45 additions & 0 deletions .github/workflows/package-validations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test Validations Package

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'packages/validations/**'
pull_request:
paths:
- 'packages/validations/**'

jobs:
MAF-Validations:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases

steps:
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm ci

- run: npm test -w packages/validations
env:
ENVIRONMENT: CI

- name: Status Create Action
if: ${{ always() }}
uses: hkusu/status-create-action@v1.0.1
id: status-create
with:
state: ${{ job.status }}
sha: ${{ github.sha }}

- name: Show result
if: always()
run: echo '${{ steps.status-create.outputs.result }}'
24 changes: 0 additions & 24 deletions .vscode/launch.json

This file was deleted.

17 changes: 12 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
"cucumberautocomplete.stepsInvariants": true,
"cucumberautocomplete.smartSnippets": true,
"cucumberautocomplete.steps": [
"packages/**/autoComplete.js"
"packages/**/stepDefinitions/*.js",
"packages/**/index.js"
],
"cucumberautocomplete.customParameters": [
{
"parameter": "{jsonObject}",
"value": "(it|item {string}|file {string}|{string})"
"value": "\\S+\\s?\\S+"
},
{
"parameter": "{validationsEquivalence}",
"value": "(<|<=|>|>=|=)"
}
],
"cucumberautocomplete.syncfeatures": "features/**feature",
"cucumberautocomplete.strictGherkinCompletion": true
}
"cucumberautocomplete.syncfeatures": "packages/**/features/**feature",
"cucumberautocomplete.strictGherkinCompletion": false,
"cucumberautocomplete.strictGherkinValidation": false,
"cucumberautocomplete.gherkinDefinitionPart": "(Given|When|Then|MAFWhen)"
}
15 changes: 0 additions & 15 deletions .vscode/tasks.json

This file was deleted.

31 changes: 0 additions & 31 deletions CHANGELOG.md

This file was deleted.

Loading