From c0ce079b3eb84fe17c222cee0b461be47dc2f965 Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Fri, 28 Feb 2025 14:52:56 -0500 Subject: [PATCH 1/5] #2 start on json doc --- .gitignore | 3 +++ docs/README.md | 6 ++++++ docs/accel.json | 23 +++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 docs/README.md create mode 100644 docs/accel.json diff --git a/.gitignore b/.gitignore index 15201ac..924b9fb 100644 --- a/.gitignore +++ b/.gitignore @@ -169,3 +169,6 @@ cython_debug/ # PyPI configuration file .pypirc + +.idea +.DS_Store diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..1e5b899 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,6 @@ +# Accelerator Data Model +## Version: 0.0.1-alpha + +## Description + +This accel.json file, and the accompanying JSON schema, represent the core data model for Accelerator. \ No newline at end of file diff --git a/docs/accel.json b/docs/accel.json new file mode 100644 index 0000000..3380363 --- /dev/null +++ b/docs/accel.json @@ -0,0 +1,23 @@ +{ + "submission": { + "submitter_name": null, + "submitter_email": null, + "submitter_comment": null + }, + "data": { + + }, + "technical_metadata": { + "created": null, + "modified": null, + "original_source": null, + "original_source_link": null, + "history": [ + { + "timestamp": null, + "msg": null + } + ] + + } +} \ No newline at end of file From 8ac9acb7b8b3dbcb2420757024cf9c7cd2e7072d Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Fri, 28 Feb 2025 15:02:34 -0500 Subject: [PATCH 2/5] Create jsonlint.yml --- .github/workflows/jsonlint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/jsonlint.yml diff --git a/.github/workflows/jsonlint.yml b/.github/workflows/jsonlint.yml new file mode 100644 index 0000000..714b5da --- /dev/null +++ b/.github/workflows/jsonlint.yml @@ -0,0 +1,24 @@ +--- +name: Jsonlint-CI +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + test: + runs-on: ubuntu-latest + container: + image: ixxel/unit-tests-alpine:latest + steps: + - name: Git clone repo + uses: actions/checkout@v2 + - name: Jsonlint scan + uses: ixxeL-actions/jsonlint@main + with: + extensions: '"json,JSON"' + environment: '""' + fix: 'true' + working-dir: ./test.json From e841fd78ece90d8696eb4ef8fc239ade11f06612 Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Mon, 3 Mar 2025 08:05:41 -0500 Subject: [PATCH 3/5] add json lint action --- .github/workflows/jsonlint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/jsonlint.yml b/.github/workflows/jsonlint.yml index 714b5da..659b69f 100644 --- a/.github/workflows/jsonlint.yml +++ b/.github/workflows/jsonlint.yml @@ -4,9 +4,12 @@ on: push: branches: - main + - develop + - feature/** pull_request: branches: - main + - develop jobs: test: runs-on: ubuntu-latest From 7218d573e81f70d362e7e10d8b857906f12406b4 Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Mon, 3 Mar 2025 08:08:15 -0500 Subject: [PATCH 4/5] add json lint action --- .github/workflows/jsonlint.yml | 2 +- {docs => schema}/README.md | 0 {docs => schema}/accel.json | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {docs => schema}/README.md (100%) rename {docs => schema}/accel.json (100%) diff --git a/.github/workflows/jsonlint.yml b/.github/workflows/jsonlint.yml index 659b69f..d4c03e5 100644 --- a/.github/workflows/jsonlint.yml +++ b/.github/workflows/jsonlint.yml @@ -24,4 +24,4 @@ jobs: extensions: '"json,JSON"' environment: '""' fix: 'true' - working-dir: ./test.json + working-dir: ./schema/accel.json diff --git a/docs/README.md b/schema/README.md similarity index 100% rename from docs/README.md rename to schema/README.md diff --git a/docs/accel.json b/schema/accel.json similarity index 100% rename from docs/accel.json rename to schema/accel.json From 8bb5b1952014bda478e96ed99d662092f9c9ec7e Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Mon, 3 Mar 2025 08:09:49 -0500 Subject: [PATCH 5/5] target action to branch --- .github/workflows/jsonlint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/jsonlint.yml b/.github/workflows/jsonlint.yml index d4c03e5..814db31 100644 --- a/.github/workflows/jsonlint.yml +++ b/.github/workflows/jsonlint.yml @@ -6,6 +6,7 @@ on: - main - develop - feature/** + - 2-make-dummy-json-doc-and-starter-schema pull_request: branches: - main