22 Commits

Author SHA1 Message Date
Gerry Ferdinandus
522b0fbd2a Support TOML test files (#2370)
* refactor: remove many JSON.parse()

The old code use multiple times JSON.parse()

The code is now more clear that there are:
callbackParameter.rawFile
callbackParameter.jsonObj

* update the axios to get the 'arraybuffer' as download.

The old code get the default JSON object as response.

* add toml for schema test validation

* hide count for fullstrict mode if only one AJV schema is scan

The output is not correct any more

* add one toml test file

* update package.json

* update pull request template

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-23 12:46:16 +02:00
Sorin Sbarnea
bbbac6d970 Enable prettier on YAML files (#2250)
This change will ensure that YAML files are using a consistent
formatting and will reformat (normalize) them if needed.

Related:
2022-05-17 10:17:54 -07:00
Gerry Ferdinandus
19557a46d8 add schema-validation.json in labeler.yml (#2240)
* add schema-validation.json in labeler

* update Gruntfile.js to Gruntfile.cjs
2022-05-10 22:25:57 +02:00
Gerry Ferdinandus
d5785ad822 Update github workflow actions/ (#2217)
These action programs no longer use the deprecated node 12 LTS.
Therefore, the version number is incremented.
2022-04-30 21:34:31 +02:00
Sorin Sbarnea
114b1e149d Move Zuul CI schema into the catalog (#2156)
As zuul-lint project is pending archival, we move Zuul CI schema in
schemastore. I will continue to help with its maintenance.
2022-03-31 07:45:58 -07:00
Sorin Sbarnea
943a8bd6d7 Add codeowners for ansible schemas (#2006)
This will help adding reviewers for schemas as @madskristensen may
use help from others that know specific schemas better, being either
owners, authors or maintainers of these schemas.
2022-01-06 09:53:13 -08:00
Gerry Ferdinandus
ce258913ad GitHub action stale must not run on the fork (#2003)
* stale.yml: must not run on the fork

There is no PR maintenance work to do on the fork

* travis.json: update the xcode version list

Some items are removed. See:
https://docs.travis-ci.com/user/reference/osx/#macos-version
2022-01-05 09:13:51 -08:00
Gerry Ferdinandus
0664ea9715 Node.js reduces build time (#1989)
* Add: cache for actions/setup-node

This shortens the build time by a few seconds.

* add grunt task: 'local_count_url_in_catalog'

This will show statistic info of the catalog
haow many external URL there are

* add grunt task: 'local_check_for_test_folders_without_schema_to_be_tested'

Verify if there are schema present for each test folders
This test was intergrated with 'localSchemaFileAndTestFile' but is now seperated

* Run AJV validator before TV4 validator

The new work and testing is done in AJV schema.
A failed AJV test should fail the build ASAP

* refactor localSchemaFileAndTestFile

1) Change the parameter name.

2) new folder scanning concept
old version:
folder name -> get -> schema JSON name

new version:
schema JSON name -> get -> folder name (if present)

3)
AJV schema is only compiled one time and no longer compiled again for positive and negative test.
This reduction in compilation count will speedup the AJV part.

* Add: check for forbidden folder inside a specific test folder

* nodejs.yml: change the steps name

Create more steps to see the time used for each step.
2022-01-03 08:21:15 -08:00
Gerry Ferdinandus
9774bf1391 List must run on all branches (#1963) 2021-12-06 09:14:52 -08:00
Gerry Ferdinandus
55661bbc6d upgrade NodeJS from 14 LTS to 16 LTS (#1924)
* update from node 14 to node 16

* update package.json

Notice that the package-lock.json have a new format due to nodejs 16

* remove grunt task validate_links

undo PR #1297
Fetch github tags as versions for urls

* add travis-ci: osx_image xcode13.1
2021-11-09 09:41:06 -08:00
Gerry Ferdinandus
9685a308cc update template with label: Are you making a PR for this? (#1922)
* update template with label: Are you making a PR for this?

* add: config.yml
2021-11-08 10:12:57 -08:00
Gerry Ferdinandus
0d65945852 add: GitHub action to automatically close stale PR (#1831)
* add: github action to close stale PR

* doc: Adding tests (for local schemas only)

Make it clear that the test is only for local schemas.
2021-09-17 09:51:30 -07:00
Azure App Service
2134dcb16c Remove the App Service deployment workflow configuration from Azure Portal. 2021-09-10 10:57:51 -07:00
Mads Kristensen
cd5eee2908 Add or update the Azure App Service build and deployment workflow config 2021-09-10 10:52:47 -07:00
Tom Parker-Shemilt
62347bd42d Run linting for editorconfig in CI (#1808)
* Run linting for editorconfig in CI

* Fix all the current linting issues
2021-09-02 06:14:17 -07:00
Gerry Ferdinandus
1d59b2f624 add: issue template (#1756) 2021-07-22 08:23:59 -07:00
Gerry Ferdinandus
9b411c3a96 remove folder src/utility (#1747)
* remove folder src/utility

This utility for creating readme.md file via nodejs is not used at all.

* labeler.yml: Add ".gitignore" and ".gitattributes"

Forgot to add them on first commit

* gruntfile.js: improve error mesage at invalid json test file.

'find-duplicated-property-keys' cannot process invalid JSON file.
But the error mesage does not show which JSON file it is.
This is now fixed.

* gruntfile.js: improve folder name alignment
2021-07-19 07:57:17 -07:00
Gerry Ferdinandus
b62abda8c5 add: actions/labeler (#1736)
PR that are also include non schema or non test related items need extra attention.
Some files may be an accidental change.
2021-07-15 11:02:01 -07:00
Gerry Ferdinandus
a44cafcb95 add pull_request_template.md (#1714) 2021-07-07 08:54:11 -07:00
Gerry Ferdinandus
a60c565c12 Limit total build time to 10 minutes (#1452) 2021-01-25 14:32:29 -08:00
Gerry Ferdinandus
0aab7042a0 add: github action (#1325)
* add: github action

* remove env: CI variable
2020-10-21 10:16:26 -07:00
Mads Kristensen
fb2fc78c29 Create FUNDING.yml 2020-09-17 09:11:54 -07:00